RtQueryProcessMSpace

RtQueryProcessMSpace queries memory allocation space information for the specified process MSpace, including various summary statistics of its local pool and pool cache.

Syntax

Copy
BOOL RtQueryProcessMSpace(
    mspace MSpace,
    MSPACE_INFO *MSpaceInfo,
    PERFORMANCE_LEVEL PerformanceLevel
);

Parameters

MSpace

A descriptor to the external or internal MSpace of the process, as returned by RtGetProcessMSpace. If NULL is specified, the external MSpace of the current process is queried.

MSpaceInfo

A pointer to the structure MSPACE_INFO to store the information of the specified MSpace.

PerformanceLevel

An enum value of a PERFORMANCE_LEVEL enum structure that indicates the performance level of calling RtQueryProcessMSpace.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.

Remarks

Calling RtQueryProcessMSpace in a Windows process with the MSpace parameter set to NULL will return information about the associated proxy process’ external MSpace.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also: