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

- 7.2.1. -
Table of Contents
7. PMODE/W MSDOS Extender
7.2. PMODE/W Supported DPMI INT 31h functions
7.2.1. Function 0000 - Allocate Descriptors


7.2.1. Function 0000 - 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: 7.2. PMODE/W Supported DPMI INT 31h functions To the Table of Contents Next: 7.2.2. Function 0001 - Free Descriptor
7.2. PMODE/W Supported DPMI INT 31h functions Table of Contents 7.2.2. Function 0001 - Free Descriptor

- 7.2.1. -