DOS/32 Advanced DOS Extender - Programmer's Reference 2.01 - DPMI function 0000h - Allocate Descriptors Allocates one or more descriptors in the client's descriptor table. The descriptor(s) allocated must be initialized by the application with other function calls.
In: | AX = 0000h CX = number of descriptors to allocate
Out: | if successful: CF clear AX = base selector if failed: CF set AX = error code 8011h - descriptor unavailable
Notes: a) If more than one descriptor was requested, the function returns a base selector referencing the first of a contiguous array of descriptors. The selector values for subsequent descriptors in the array can be calculated by adding the value returned by DPMI function 0003h. b) The allocated descriptor(s) will be set to "data" with the present bit set and a base and limit of zero. The privilege level of the descriptor(s) will match the application's code segment privilege level. Copyright © Supernar Systems, Ltd. 1996-2002 All Rights Reserved.