RtQueryProcessMSpace

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

Syntax

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

Parameters

MSpace

A descriptor to the external or internal MSpace of the RTSS process, as returned by RtGetProcessMSpace. If NULL is specified, the external MSpace of the current process is queried. Passing NULL for this parameter is only valid when this API is called from a real-time process. If a Windows process passes NULL for this parameter, the API will fail and set the last error value to ERROR_INVALID_PARAMETER.

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

Returns TRUE if the function succeeds. Returns FALSE if the function fails.

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 RTX64 4.0
Header Rtapi.h
Library RtApi.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also:

RtGetProcessMSpace

RtExpandMSpace

RtShrinkMSpace

MSPACE_INFO

PERFORMANCE_LEVEL