DOS/32 Advanced DOS Extender - Programmer's Reference


2.09 - DPMI function 000Ah - Create Alias Descriptor

Creates a new data descriptor that has the same base and limit as the specified descriptor.

 

In: AX = 000Ah
BX = selector
Out:

if successful:
CF clear
AX = data selector (alias)

if failed:
CF set
AX = error code

8011h - descriptor unavailable
8022h - invalid selector

Notes:

a) The selector supplied to the function may be either a data selector or an executable selector. The created alias selector will always be a writeable data selector.

b) 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.

 


Copyright Supernar Systems, Ltd. 1996-2005
All Rights Reserved.