Next: Get_Linear_Addr
Up: Functions and Procedures
Previous: Set_Segment_Limit
Function Create_Code_Segment_Alias_Descriptor (Des : Word) : Word;
Create_Code_Segment_Alias_Descriptor
Creates a new descriptor that has the same base and limit as the
specified descriptor. In effect, the function returns a copy of the
descriptor.
Notes:
- Only works under real DPMI.
- The descriptor alias returned by this function will not track changes
to the original descriptor. In other words, if an alias is created with
this function, and the base or limit of the original segment is then
changed, the two descriptors will no longer map the same memory.
None.
- Example
-
uses go32;
var copysel : word;
begin
copysel := create_code_segment_alias_descriptor(get_ds);
{...}
free_ldt_descriptor(copysel);
end.
Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998