DOS/32 Advanced DOS Extender - D32A C/C++ Run-Time Library Reference



4.10 - DOS/32 Advanced D32A Library function - d32a_getfreemem_info()

Synopsys:

#include <d32a.h>
void d32a_getfreemem_info(D32A_MEMINFO *MemInfo);

typedef struct _D32A_MEMINFO {
    unsigned long LargestFreeBlock;
    unsigned long MaxUnlockedPages;
    unsigned long MaxLockedPages;
    unsigned long LinearSpaceInPages;
    unsigned long TotalNumOfUnlockedPages;
    unsigned long TotalNumOfFreePages;
    unsigned long TotalNumOfPhysPages;
    unsigned long FreeLinearSpaceInPages;
    unsigned long SizeOfPagingFile;
    unsigned long DPMI_Reserved[3];
} D32A_MEMINFO;


Description:

The d32a_getfreemem_info function returns the complete information about Extended memory availability and its state as returned by DPMI function 0500h. The information is placed into the MemInfo structure which must be declared somewhere in the program. The values returned by this function in the structure MemInfo should be considered as advisory when the application is running in a multitasking environment, as other programs may allocate some memory after this function has been called.


Returns:

This function fills the MemInfo structure, defined somewhere in the program's body with information about Extended memory state.

 


Copyright © DOS/32 Advanced Team 1996-2002
All Rights Reserved