Previous: 7.2.28. Function 0400 - Get Version To the Table of Contents Next: 7.2.30. Function 0501 - Allocate Memory Block
7.2.28. Function 0400 - Get Version Table of Contents 7.2.30. Function 0501 - Allocate Memory Block

- 7.2.29. -
Table of Contents
7. PMODE/W MSDOS Extender
7.2. PMODE/W Supported DPMI INT 31h functions
7.2.29. Function 0500 - Get Free Memory Information


7.2.29. Function 0500 - Get Free Memory Information


PMODE/W API

This function Returns information about the amount of available memory. Since DPMI clients could be running in a multitasking environment, the information returned by this function should be considered advisory.
In:
   AX     = 0500h
   ES:EDI = selector:offset of 48 byte buffer
Out:
   if successful:
     carry flag clear
     buffer is filled with the following information:
       Offset Length Contents
       00h     4       Largest available free block in
                       bytes
       04h     2ch     Other fields only supplied by DPMI
   if failed:
     carry flag set
Notes:
Only the first field of the structure is guaranteed to contain a valid value. Any fields that are not supported by the host will be set to -1 (0ffffffffh) to indicate that the information is not available.


Previous: 7.2.28. Function 0400 - Get Version To the Table of Contents Next: 7.2.30. Function 0501 - Allocate Memory Block
7.2.28. Function 0400 - Get Version Table of Contents 7.2.30. Function 0501 - Allocate Memory Block

- 7.2.29. -