> ## 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](/zh-TW/reference/system/xmem/enums/xmem_options)

要套用設定的選項類型。

*Bool*\
類型：BOOL

當 Type 指定 Bool 參數時要設定的 BOOL 值。

*Int*\
類型：UINT64

當 Type 指定 Int 參數時要設定的 Int 值。

*Pointer*\
類型：PVOID

當 Type 指定 Pointer 參數時要設定的指標值。

## 備註

*XMEM\_OPTION* 會與 [XMemSetOption](/zh-TW/reference/system/xmem/functions/xmemsetoption) 搭配使用，以指定要設定的組態選項和值。

## 需求

**標頭：** xmem.h\
**支援的平台**：XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[xmem](/zh-TW/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)
