MEMMANINFO

3.1

#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;

The MEMMANINFO structure contains information about the status and performance of the virtual-memory manager. If the memory manager is running in standard mode, the only valid member of this structure is the dwLargestFreeBlock member.

Members

dwSize

Specifies the size of the MEMMANINFO structure, in bytes.

dwLargestFreeBlock

Specifies the largest free block of contiguous linear memory in the system, in bytes.

dwMaxPagesAvailable

Specifies the maximum number of pages that could be allocated in the system (the value of dwLargestFreeBlock divided by the value of wPageSize).

dwMaxPagesLockable

Specifies the maximum number of pages that could be allocated and locked.

dwTotalLinearSpace

Specifies the size of the total linear address space, in pages.

dwTotalUnlockedPages

Specifies the number of unlocked pages in the system. This value includes free pages.

dwFreePages

Specifies the number of pages that are not in use.

dwTotalPages

Specifies the total number of pages the virtual-memory manager manages. This value includes free, locked, and unlocked pages.

dwFreeLinearSpace

Specifies the amount of free memory in the linear address space, in pages.

dwSwapFilePages

Specifies the number of pages in the system swap file.

wPageSize

Specifies the system page size, in bytes.

See Also

MemManInfo