Skip to main content

XMemSetWin32HeapName

Sets the name of a Win32 Heap

Syntax

Parameters

Heap   _In_
Type: HANDLE
Heap Handle Buffer   _In_
Type: PCSTR
Buffer containing the name to set SizeOfBuffer   _In_
Type: SIZE_T
Size in bytes of Buffer

Return value

Type: BOOL On success XMemSetWin32HeapName returns TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

Remarks

The heap name is limited to 8 characters not including the NULL terminator. XMemSetWin32HeapName will truncate the supplied name at the character limit.

Requirements

Header: xmem.h Library: xmem.lib Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

xmem members
Last modified on August 20, 2026