Returns information about the physical memory managed by a process.
BOOLEAN GetRtPhysicalMemoryInfo(
RTHANDLE hProcess,
LPPHYSICAL_MEMORY_INFO pMemoryInfo
);
typedef struct {
RTHANDLE hTargetProcess; // process for which the information is returned
RTHANDLE hParentProcess; // process’ parent process handle
QWORD cbPoolMax; // pool max value, in bytes
QWORD cbPoolMin; // pool min value, in bytes
QWORD cbAllocated; // memory currently allocated from pool min, in bytes
QWORD cbBorrowed; // memory borrowed from parent process, in bytes
QWORD cbAvailable; // memory available, in bytes
QWORD cbLargestAvailable; // largest memory area available, in bytes
} PHYSICAL_MEMORY_INFO, *LPPHYSICAL_MEMORY_INFO;
hProcess
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 |