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

# XMEM_OPTION

> XMEM_OPTION

# XMEM\_OPTION

指定内存选项的类型和值。

## 语法

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

### 成员

*Option*\
类型：[XMEM\_OPTIONS](https://docs.xbox.com/zh-CN/reference/system/xmem/enums/xmem_options.md)

要为其应用设置的选项类型。

*Bool*\
类型：BOOL

如果 Type 指定 Bool 参数，则要设置的 BOOL 值。

*Int*\
类型：UINT64

如果 Type 指定 Int 参数，则要设置的 Int 值。

*Pointer*\
类型：PVOID

如果 Type 指定 Pointer 参数，则要设置的指针值。

## 备注

*XMEM\_OPTION* 与 [XMemSetOption](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemsetoption.md) 一起使用，用于指定要设置的配置选项和值。

## 要求

**头文件：** xmem.h\
**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[xmem](https://docs.xbox.com/zh-CN/reference/system/xmem/xmem_members.md)


## Related topics

- [XMEM_OPTIONS](https://docs.xbox.com/zh-CN/reference/system/xmem/enums/xmem_options.md)
- [XMemSetOption](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemsetoption.md)
- [XMEM_ALLOCATION_HOOKS](https://docs.xbox.com/zh-CN/reference/system/xmem/structs/xmem_allocation_hooks.md)
- [XMemVirtualQuery](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemvirtualquery.md)
- [XMEM_SET_ALLOCATION_HOOKS](https://docs.xbox.com/zh-CN/reference/system/xmem/macros/xmem_set_allocation_hooks.md)
