Previous: PMODE/W Supported DPMI INT 31h functions To the Table of Content Next: Function 0001 - Free Descriptor

- 7.2.1 -
PMODE/W MSDOS Extender
PMODE/W Supported DPMI INT 31h functions

Function 0000h - Allocate Descriptors

PMODE/W API

This function 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:
   carry flag clear
   AX     = base selector
 if failed:
   carry flag set
Notes:
If more that 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 INT 31h function 0003h.

The allocated descriptor(s) will be set to expand-up writeable data, with the present bit set and a base and limit of zero. The privilege level of the descriptor(s) will match the client's code segment privilege level.


Previous: PMODE/W Supported DPMI INT 31h functions To the Table of Content Next: Function 0001 - Free Descriptor
PMODE/W Supported DPMI INT 31h functions Table of Content Function 0001 - Free Descriptor

- 7.2.1 -