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

Os valores de **XMEM\_OPTIONS** são usados como o parâmetro *Option* da struct [XMEM\_OPTION](/pt-BR/reference/system/xmem/structs/xmem_option).  O tipo de parâmetro indica qual parâmetro (Bool, Int ou Pointer) deve ser definido ao preencher a struct.

## Sintaxe

```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 | Descrição |
| - | - | - |
| eXMEMOPT\_VALIDATE\_XMEMALLOC | BOOL | Habilita a validação em tempo de execução da memória retornada por XMemAlloc. |
| eXMEMOPT\_XMEMALLOCDEFAULT\_TAG\_VIRTUALALLOC | BOOL | Habilita a marcação de confirmação das alocações de XMemVirtualAlloc feitas por XMemAllocDefault. |
| eXMEMOPT\_RAISE\_HEAPFREE\_CALLBACK\_ON\_REALLOC | BOOL | Habilita a geração de um retorno de chamada de heapfree em realocações. |
| eXMEMOPT\_XMEMALLOCDEFAULT\_DISABLEPAGESIZEDEMOTION | BOOL | Desabilita o rebaixamento automático de 2MB para 64KB nos heaps do XMem. |
| eXMEMOPT\_XMEMALLOCDEFAULT\_TRAPUSEAFTERFREE | BOOL | Promove todas as chamadas de XMemAlloc/XMemFree que utilizam os heaps internos para XMemVirtualAlloc/VirtualFree |
| eXMEMOPT\_XMEMALLOCDEFAULT\_USE64KPAGES | BOOL | Configura os heaps do XMem para usar páginas de 64KB em vez de páginas de 2MB |
| eXMEMOPT\_ALLOW\_WRITEABLE\_FILEMAPPINGS | BOOL | Se habilitado, permite que CreateFileMappingA/W seja bem-sucedida quando chamada com sinalizadores graváveis |

## Requisitos

**Cabeçalho:** xmem.h
**Plataformas compatíveis**: consoles da família XBOX One e consoles XBOX Series

## Confira também

[xmem](/pt-BR/reference/system/xmem/xmem_members)


## Related topics

- [XMEM_OPTION](/reference/system/xmem/structs/xmem_option.md)
- [XMEM_OPTIONS](/reference/system/xmem/enums/xmem_options.md)
