MemManInfo

3.1

  #include <toolhelp.h>    

  BOOL MemManInfo(lpmmi)    
  MEMMANINFO FAR* lpmmi; /* address of MEMMANINFO structure */

The MemManInfo function fills the specified structure with status and performance information about the memory manager. This function is most useful in 386 enhanced mode but can also be used in standard mode.

Parameters

lpmmi

Points to a MEMMANINFO structure that will receive information about the memory manager. The MEMMANINFO structure has the following form:

#include <toolhelp.h>

typedef struct tagMEMMANINFO {  /* mmi */
    DWORD dwSize;
    DWORD dwLargestFreeBlock;
    DWORD dwMaxPagesAvailable;
    DWORD dwMaxPagesLockable;
    DWORD dwTotalLinearSpace;
    DWORD dwTotalUnlockedPages;
    DWORD dwFreePages;
    DWORD dwTotalPages;
    DWORD dwFreeLinearSpace;
    DWORD dwSwapFilePages;
    WORD  wPageSize;
} MEMMANINFO;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

Comments

This function is included for advisory purposes.

Before calling MemManInfo, an application must initialize the MEMMANINFO structure and specify its size, in bytes, in the dwSize member.