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

# XALLOC_ALLOCATOR_IDS

> XALLOC_ALLOCATOR_IDS

# XALLOC\_ALLOCATOR\_IDS

定義記憶體配置常式所使用之不同類型配置器的 ID 集範圍。

## 語法

```cpp theme={null}
typedef enum _XALLOC_ALLOCATOR_IDS    
{  
    eXALLOCAllocatorId_GameMin = 0,  
    eXALLOCAllocatorId_GameMax = 127,  
    eXALLOCAllocatorId_PlatformReservedMin = 128,  
    eXALLOCAllocatorId_D3D = 128,  
    eXALLOCAllocatorId_Audio = 129,  
    eXALLOCAllocatorId_Video = 130,  
    eXALLOCAllocatorId_ApplicationClip = 131,  
    eXALLOCAllocatorId_SmartGlass = 132,  
    eXALLOCAllocatorId_Networking = 133,  
    eXALLOCAllocatorId_AppPlatform = 134,  
    eXALLOCAllocatorId_Input = 135,  
    eXALLOCAllocatorId_ShellAPI = 136,  
    eXALLOCAllocatorId_MultimediaControl = 137,  
    eXALLOCAllocatorId_COM = 138,  
    eXALLOCAllocatorId_CpuProfilers = 139,  
    eXALLOCAllocatorId_WinRT = 140,  
    eXALLOCAllocatorId_RPC = 141,  
    eXALLOCAllocatorId_PIX = 142,  
    eXALLOCAllocatorId_XMem = 143,  
    eXALLOCAllocatorId_PlatformReservedMax = 191,  
    eXALLOCAllocatorId_MiddlewareReservedMin = 192,  
    eXALLOCAllocatorId_MiddlewareReservedMax = 255  
} XALLOC_ALLOCATOR_IDS  
```

## 常數

| 常數 | 描述 |
| - | - |
| eXALLOCAllocatorId\_GameMin | 可供遊戲用於配置之配置器 ID 範圍的起點。 |
| eXALLOCAllocatorId\_GameMax | 可供遊戲用於配置之配置器 ID 範圍的終點。 |
| eXALLOCAllocatorId\_PlatformReservedMin | 系統所使用之配置器 ID 範圍的起點。 |
| eXALLOCAllocatorId\_D3D | Direct 3D 的配置器 ID。 |
| eXALLOCAllocatorId\_Audio | 音訊的配置器 ID。 |
| eXALLOCAllocatorId\_Video | 視訊的配置器 ID。 |
| eXALLOCAllocatorId\_ApplicationClip | 應用程式剪輯的配置器 ID。 |
| eXALLOCAllocatorId\_SmartGlass | SmartGlass 的配置器 ID。 |
| eXALLOCAllocatorId\_Networking | 網路功能的配置器 ID。 |
| eXALLOCAllocatorId\_AppPlatform | 應用程式平台的配置器 ID。 |
| eXALLOCAllocatorId\_Input | 輸入的配置器 ID。 |
| eXALLOCAllocatorId\_ShellAPI | 殼層 API 的配置器 ID。 |
| eXALLOCAllocatorId\_MultimediaControl | 多媒體控制的配置器 ID。 |
| eXALLOCAllocatorId\_COM | COM 的配置器 ID。 |
| eXALLOCAllocatorId\_CpuProfilers | CPU 分析工具的配置器 ID。 |
| eXALLOCAllocatorId\_WinRT | WinRT 的配置器 ID。 |
| eXALLOCAllocatorId\_RPC | RPC 的配置器 ID。 |
| eXALLOCAllocatorId\_PIX | PIX 的配置器 ID。 |
| eXALLOCAllocatorId\_XMem | XMem 的配置器 ID。 |
| eXALLOCAllocatorId\_PlatformReservedMax | 系統所使用之配置器 ID 範圍的終點。 |
| eXALLOCAllocatorId\_MiddlewareReservedMin | 保留給中介軟體之配置器 ID 範圍的起點。 |
| eXALLOCAllocatorId\_MiddlewareReservedMax | 保留給中介軟體之配置器 ID 範圍的終點。 |

## 備註

**XALLOC\_ALLOCATOR\_IDS** 常數由 [XALLOC\_ATTRIBUTES](/zh-TW/reference/system/xmem/structs/xalloc_attributes) 等位的 *AllocatorId* 成員使用。每個配置都與一個配置器 ID 相關聯，此 ID 會識別要求配置 (或釋放) 的子系統。配置有三個可能的來源：遊戲、平台 (作業系統) 和中介軟體元件。

遊戲開發人員可以自由使用 **eXALLOCAllocatorId\_GameMin** 到 **eXALLOCAllocatorId\_GameMax** 範圍內的任何值，來識別其哪些子系統正在執行配置。

如果您是中介軟體廠商，並想要保留配置器 ID，請連絡您的開發人員帳戶經理。

## 需求

**標頭：** xmem.h

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

## 另請參閱

[XMem 參考](/zh-TW/reference/system/xmem/xmem_members)\
[XALLOC\_ATTRIBUTES](/zh-TW/reference/system/xmem/structs/xalloc_attributes)\
[XMEMALLOC\_ROUTINE](/zh-TW/reference/system/xmem/functions/xmemalloc_routine)\
[XMEMFREE\_ROUTINE](/zh-TW/reference/system/xmem/functions/xmemfree_routine)


## Related topics

- [XALLOC_ALLOCATOR_IDS](/reference/system/xmem/enums/xalloc_allocator_ids.md)
- [XMemFreeDefault](/reference/system/xmem/functions/xmemfreedefault.md)
- [XDspConnect](/reference/audio/xdspaudio/functions/xdspconnect.md)
- [XDspConnectWithMaximumStreamLimit](/reference/audio/xdspaudio/functions/xdspconnectwithmaximumstreamlimit.md)
- [Wrapper sample](/services/playfab/multiplayer/servers/wrapper-sample.md)
