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

# XMemMakeTag

> XMemMakeTag

# XMemMakeTag

根據四字元代碼建立 24 位元標記。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
ULONGLONG XMemMakeTag(  
         UINT32 Tag  
)  
```

<a id="parametersSection" />

### 參數

*Tag*   \_In\_\
類型：UINT32

用來建立 24 位元標記的四字元代碼。此代碼支援小寫和大寫字母 (a-z 和 A-Z)、數字 (0-9) 以及錢字號 (\$)。無效的字元輸入會讀回為星號 (\*)。

<a id="retvalSection" />

### 傳回值

類型：ULONGLONG

24 位元標記代碼，放置在 64 位元 ULONGLONG 的高 24 位元中。

<a id="remarksSection" />

## 備註

此函式是一個協助程式函式，可用來透過位元 OR 組合，將選用的 4 字元標記併入 [XMemAllocatePhysicalPages](/zh-TW/reference/system/xmem/functions/xmemallocatephysicalpages) 和 [XMemVirtualAlloc](/zh-TW/reference/system/xmem/functions/xmemvirtualalloc) 函式的 `XMemFlags` 參數中。選用的 4 字元標記會套用至這些函式所識別的頁面範圍。您可以從 [XMemVirtualQuery](/zh-TW/reference/system/xmem/functions/xmemvirtualquery) 所傳回之 [XMEM\_BASIC\_INFORMATION](/zh-TW/reference/system/xmem/structs/xmem_basic_information) 結構中的 `XMemFlags` 成員擷取該標記。如需使用記憶體管理員的詳細資訊，請參閱[使用 Microsoft GDK 遊戲 OS 記憶體管理員](/zh-TW/build/console-features/memory/system-memory-working)。

<a id="requirementsSection" />

## 需求

**標頭：** xmem.h

**程式庫：** xmem.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[記憶體](/zh-TW/build/console-features/memory/system-memory-overview)\
[XMem](/zh-TW/reference/system/xmem/xmem_members)


## Related topics

- [XMemMakeTag](/reference/system/xmem/functions/xmemmaketag.md)
- [XMemSetOption](/reference/system/xmem/functions/xmemsetoption.md)
- [Make package (makepkg.exe)](/build/core-features/common/packaging/deployment/makepkg.md)
- [XMemVirtualQuery](/reference/system/xmem/functions/xmemvirtualquery.md)
- [PFTagModel](/services/playfab/api-references/c/pftypes/structs/pftagmodel.md)
