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

# XMemMakeTag

> XMemMakeTag

# XMemMakeTag

根据四字符代码创建 24 位标签。

## 语法

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

### 参数

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

用于创建 24 位标签的四字符代码。该代码支持小写和大写字母（a-z 和 A-Z）、数字（0-9）和美元符号 (\$)。无效字符输入将被读作星号 (\*)。

### 返回值

类型：ULONGLONG

24 位标签代码，放置在 64 位 ULONGLONG 的高 24 位中。

## 备注

此函数是一个帮助程序函数，你可以使用它通过按位或组合，将可选的 4 字符标签合并到 [XMemAllocatePhysicalPages](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemallocatephysicalpages.md) 和 [XMemVirtualAlloc](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemvirtualalloc.md) 函数的 `XMemFlags` 参数中。可选的 4 字符标签将应用于由这些函数标识的页范围。你可以从 [XMemVirtualQuery](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemvirtualquery.md) 返回的 [XMEM\_BASIC\_INFORMATION](https://docs.xbox.com/zh-CN/reference/system/xmem/structs/xmem_basic_information.md) 结构中的 `XMemFlags` 成员检索该标签。有关使用内存管理器的详细信息，请参阅[使用 Microsoft GDK Game OS 内存管理器](https://docs.xbox.com/zh-CN/build/console-features/memory/system-memory-working.md)。

## 要求

**头文件：** xmem.h

**库：** xmem.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[内存](https://docs.xbox.com/zh-CN/build/console-features/memory/system-memory-overview.md)\
[XMem](https://docs.xbox.com/zh-CN/reference/system/xmem/xmem_members.md)


## Related topics

- [XMemSetOption](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemsetoption.md)
- [XMemVirtualQuery](https://docs.xbox.com/zh-CN/reference/system/xmem/functions/xmemvirtualquery.md)
- [List Group Members](https://docs.xbox.com/api-reference/groups/list-group-members.md)
- [PFGroupsListGroupMembersRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistgroupmembersrequest.md)
- [PFGroupsListMembershipRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershiprequest.md)
