RtExpandMSpace

RtExpandMSpace expands the specified MSpace by the size specified.

Syntax

Copy
BOOL RtExpandMSpace(
    mspace MSpace,
    ULONG Size
);

Parameters

MSpace

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

Size

An unsigned long specifying the size, in bytes, by which to expand the MSpace.

Return Value

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

Remarks

RtExpandMSpace allows you to explicitly expand the MSpace. The expanded memory will be added to the free memory in the MSpace’s local pool.

Calling RtExpandMSpace in a Windows process with the MSpace parameter set to NULL will expand the associated proxy process’ external MSpace.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also: