> ## 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.

# XMEM_OPTIONS

> XMEM_OPTIONS

# XMEM\_OPTIONS

Los valores de **XMEM\_OPTIONS** se usan como parámetro *Option* de la estructura [XMEM\_OPTION](/reference/system/xmem/structs/xmem_option). El tipo de parámetro indica qué parámetro (Bool, Int o Pointer) debe establecerse al rellenar la estructura.

## Sintaxis

```cpp theme={null}
typedef enum _XMEM_OPTIONS    
{  
    eXMEMOPT_VALIDATE_XMEMALLOC = 0x1,  
    eXMEMOPT_XMEMALLOCDEFAULT_TAG_VIRTUALALLOC = 0x2,  
    eXMEMOPT_RAISE_HEAPFREE_CALLBACK_ON_REALLOC = 0x3,  
    eXMEMOPT_XMEMALLOCDEFAULT_DISABLEPAGESIZEDEMOTION = 0x4,  
    eXMEMOPT_XMEMALLOCDEFAULT_TRAPUSEAFTERFREE = 0x5,  
    eXMEMOPT_XMEMALLOCDEFAULT_USE64KPAGES = 0x6,
    eXMEMOPT_ALLOW_WRITEABLE_FILEMAPPINGS = 0x7,
    eXMEMOPT_MAX = 0xFFFF,
} XMEM_OPTIONS  
```

## Constantes

| Constante                                           | Tipo de parámetro | Descripción                                                                                                           |
| --------------------------------------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------- |
| eXMEMOPT\_VALIDATE\_XMEMALLOC                       | BOOL              | Habilita la validación en tiempo de ejecución de la memoria devuelta por XMemAlloc.                                   |
| eXMEMOPT\_XMEMALLOCDEFAULT\_TAG\_VIRTUALALLOC       | BOOL              | Habilita el etiquetado de confirmación de las asignaciones de XMemVirtualAlloc realizadas por XMemAllocDefault.       |
| eXMEMOPT\_RAISE\_HEAPFREE\_CALLBACK\_ON\_REALLOC    | BOOL              | Habilita la generación de una devolución de llamada de heapfree en las reasignaciones.                                |
| eXMEMOPT\_XMEMALLOCDEFAULT\_DISABLEPAGESIZEDEMOTION | BOOL              | Deshabilita la degradación automática de 2 MB a 64 KB para los montones de XMem.                                      |
| eXMEMOPT\_XMEMALLOCDEFAULT\_TRAPUSEAFTERFREE        | BOOL              | Promueve todas las llamadas a XMemAlloc/XMemFree que utilizan los montones internos a XMemVirtualAlloc/VirtualFree    |
| eXMEMOPT\_XMEMALLOCDEFAULT\_USE64KPAGES             | BOOL              | Configura los montones de XMem para que usen páginas de 64 KB en lugar de páginas de 2 MB                             |
| eXMEMOPT\_ALLOW\_WRITEABLE\_FILEMAPPINGS            | BOOL              | Si está habilitada, permite que CreateFileMappingA/W se realice correctamente cuando se llama con marcas de escritura |

## Requisitos

**Encabezado:** xmem.h
**Plataformas compatibles**: consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

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


## Related topics

- [XMEM_OPTION](/es/reference/system/xmem/structs/xmem_option.md)
- [XMemSetOption](/es/reference/system/xmem/functions/xmemsetoption.md)
- [XMemVirtualQuery](/es/reference/system/xmem/functions/xmemvirtualquery.md)
- [XMEM_ALLOCATION_HOOKS](/es/reference/system/xmem/structs/xmem_allocation_hooks.md)
- [XMemGetWorkingSetStatistics](/es/reference/system/xmem/functions/xmemgetworkingsetstatistics.md)
