INtime SDK Help
GetRtPhysicalMemoryInfo
INtime SDK v7 > About INtime > INtime Kernel > Memory management > GetRtPhysicalMemoryInfo

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;

Parameters

hProcess
A handle for a process for which the information is to be returned.
pMemoryInfo
A pointer to a PHYSICAL_MEMORY_INFO structure where the information is to be returned.

Return Values

TRUE
Success.
FALSE
Failure. To determine the status, call GetLastRtError.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_TYPE 0x8002
The handle is not a handle for a process.
E_EXIST
The handle is not a valid handle for an INtime object.
E_BAD_ADDR
the pMemoryInfo pointer is not a valid address for writable memory.

Requirements

Versions Defined in Include Link to
INtime 6.2 intime/rt/include/rtbase.h rt.h rt.lib
See Also