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

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

## 语法

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

### 成员

*Option*\
类型：[XMEM\_OPTIONS](/reference/system/xmem/enums/xmem_options)

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

*Bool*\
类型：BOOL

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

*Int*\
类型：UINT64

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

*Pointer*\
类型：PVOID

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

## 备注

*XMEM\_OPTION* 与 [XMemSetOption](/reference/system/xmem/functions/xmemsetoption) 一起使用，用于指定要设置的配置选项和值。

## 要求

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

## 另请参阅

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


## Related topics

- [XMEM_OPTIONS](/zh-CN/reference/system/xmem/enums/xmem_options.md)
- [XMemSetOption](/zh-CN/reference/system/xmem/functions/xmemsetoption.md)
- [XMemVirtualQuery](/zh-CN/reference/system/xmem/functions/xmemvirtualquery.md)
- [XMEM_ALLOCATION_HOOKS](/zh-CN/reference/system/xmem/structs/xmem_allocation_hooks.md)
- [XMemGetWorkingSetStatistics](/zh-CN/reference/system/xmem/functions/xmemgetworkingsetstatistics.md)
