> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XMemSetWin32HeapName

> XMemSetWin32HeapName

# XMemSetWin32HeapName

Establece el nombre de un montón Win32

## Sintaxis

```cpp theme={null}
BOOL XMemSetWin32HeapName(
  HANDLE Heap,
  PCSTR Buffer,
  SIZE_T SizeOfBuffer
)
```

### Parámetros

*Heap*   \_In\_\
Tipo: HANDLE

Identificador del montón

*Buffer*   \_In\_\
Tipo: PCSTR

Búfer que contiene el nombre que se va a establecer

*SizeOfBuffer*   \_In\_\
Tipo: SIZE\_T

Tamaño en bytes de Buffer

### Valor devuelto

Tipo: BOOL

Si se ejecuta correctamente, XMemSetWin32HeapName devuelve TRUE. Si la función no se ejecuta correctamente, el valor devuelto es FALSE.  Para obtener información de error extendida, llame a <a href="https://msdn.microsoft.com/library/windows/desktop/ms679360(v=vs.85).aspx">GetLastError</a>.

## Comentarios

El nombre del montón está limitado a 8 caracteres, sin incluir el terminador NULL.  XMemSetWin32HeapName truncará el nombre proporcionado en el límite de caracteres.

## Requisitos

**Encabezado:** xmem.h

**Biblioteca:** xmem.lib

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[Miembros de xmem](/reference/system/xmem/xmem_members)


## Related topics

- [XMemGetWin32HeapName](/es/reference/system/xmem/functions/xmemgetwin32heapname.md)
- [XMemSetWin32HeapTrackingHooks](/es/reference/system/xmem/functions/xmemsetwin32heaptrackinghooks.md)
- [XMemCreateWin32Heap](/es/reference/system/xmem/functions/xmemcreatewin32heap.md)
- [WIN32_HEAP_STATISTICS](/es/reference/system/xmem/structs/win32_heap_statistics.md)
- [XMemGetWin32HeapStatistics](/es/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)
