TitleMemoryStatus

Retrieves information about the current usage of memory accessible to the title.

Your title code should use TitleMemoryStatus to get memory information, rather than GlobalMemoryStatus, because the latter reports memory statistics for the entire partition, including kernel and system processes that your title code does not control. TitleMemoryStatus limits its statistics to the memory that your title controls, and it is suitable for memory leak detection and similar uses.

Syntax

BOOL TitleMemoryStatus(
         LPTITLEMEMORYSTATUS Buffer
)  

Parameters

Buffer
Type: LPTITLEMEMORYSTATUS 

[in, out] Points to a TITLEMEMORYSTATUS structure to be populated by TitleMemoryStatus. You must set the dwLength member properly before calling TitleMemoryStatus.

Return value

Type: BOOL 

Returns non-zero on success. Returns 0 on failure. Call GetLastError to get extended error information.

Requirements

Header: Declared in xmem.h.