Returns information about the virtual memory managed by a process.
BOOLEAN GetRtVirtualMemoryInfo( RTHANDLE hProcOrVseg , LPVIRTUAL_MEMORY_INFO pMemoryInfo ); typedef struct tagVirtMemInfo { RTHANDLE hProcess; // handle for process which owns the vseg RTHANDLE hVseg; // vseg being inspected DWORD cbVsegSize; // vseg size, in bytes. 0 == 4 GiB DWORD cbAllocated; // space allocated from vseg, in bytes DWORD cbAvailable; // space available, in bytes DWORD cbLargestAvailable; // largest available piece, in bytes } VIRTUAL_MEMORY_INFO, *LPVIRTUAL_MEMORY_INFO;
hProcOrVseg
pMemoryInfo
TRUE
FALSE
E_OK 0x0000
E_TYPE 0x8002
E_EXIST
E_BAD_ADDR
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 6.2 | intime/rt/include/rtbase.h | rt.h | rt.lib |