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

> XMEM_OPTION

# XMEM\_OPTION

Specifies the type and value of a memory option.

## Syntax

```cpp theme={null}
typedef struct XMEM_OPTION {  
    XMEM_OPTIONS Option;  
    union  
    {  
        BOOL Bool;  
        UINT64 Int;  
        PVOID Pointer;  
    } u;  
} XMEM_OPTION  
```

### Members

*Option*\
Type: [XMEM\_OPTIONS](/reference/system/xmem/enums/xmem_options)

The option type to apply a setting for.

*Bool*\
Type: BOOL

The BOOL value to set if Type specifies a Bool parameter.

*Int*\
Type: UINT64

The Int value to set if Type specifies an Int parameter.

*Pointer*\
Type: PVOID

The pointer value to set if Type specifies a Pointer parameter.

## Remarks

*XMEM\_OPTION* is used with [XMemSetOption](/reference/system/xmem/functions/xmemsetoption) to specify a configuration option and value to set.

## Requirements

**Header:** xmem.h\
**Supported Platforms**: XBOX One family consoles and XBOX Series consoles

## See also

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


## Related topics

- [XMEM_OPTIONS](/reference/system/xmem/enums/xmem_options.md)
- [XMemSetOption](/reference/system/xmem/functions/xmemsetoption.md)
- [XMemMapPhysicalPagesScatter](/reference/system/xmem/functions/xmemmapphysicalpagesscatter.md)
- [XMemVirtualQuery](/reference/system/xmem/functions/xmemvirtualquery.md)
- [XMEM_ALLOCATION_HOOKS](/reference/system/xmem/structs/xmem_allocation_hooks.md)
