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

# XMEMFREE_ROUTINE コールバック

> XMEMFREE_ROUTINE コールバック

# XMEMFREE\_ROUTINE コールバック

メモリ解放ルーチン [XMemFree](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemfree.md) および `XMemFreeDefault` のシンタックスを定義します。

## Syntax

```cpp theme={null}
VOID XMEMFREE_ROUTINE(  
         PVOID Address,  
         ULONGLONG Attributes  
)  
```

### Parameters

*Address*   \_In\_\
型: PVOID

解放するメモリのアドレス。

*Attributes*   \_In\_\
型: ULONGLONG

メモリ割り当ての属性。詳細については、[XALLOC\_ATTRIBUTES](https://docs.xbox.com/ja-jp/reference/system/xmem/structs/xalloc_attributes.md) を参照してください。

### Return value

型: VOID

なし。

## Remarks

この関数定義は、[XMEM\_ALLOCATION\_HOOKS](https://docs.xbox.com/ja-jp/reference/system/xmem/structs/xmem_allocation_hooks.md) 構造体で使用され、[XMemFree](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemfree.md) および `XMemFreeDefault` 関数を定義します。同様に、[XMEMALLOC\_ROUTINE](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemalloc_routine.md) 関数の定義は、[XMemAlloc](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemalloc.md) および `XMemAllocDefault` 関数を定義するために使用されます。

> [!NOTE]
>
> `XMemFree` の既定の実装のソース コードは、Microsoft Game Development Kit (GDK) の一部としてインストールされます。詳細については、`\GXDK\gameKit\Source\amd64\heap.c` の `XMemFreeDefault` 関数を参照してください。

## Requirements

**ヘッダー:** xmem.h

**ライブラリ:** xmem.lib

**サポートされているプラットフォーム:** XBOX One ファミリー本体および XBOX Series 本体

## See also

[Diagnostics and memory tracking](https://docs.xbox.com/ja-jp/build/console-features/memory/system-memory-diagnostics.md)\
[XMem](https://docs.xbox.com/ja-jp/reference/system/xmem/xmem_members.md)\
[XMemFreeDefault](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemfreedefault.md)


## Related topics

- [XMEMALLOC_ROUTINE コールバック](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemalloc_routine.md)
- [GameInput コールバック](https://docs.xbox.com/ja-jp/build/core-features/common/input/advanced/input-callbacks.md)
- [Game Saves の UI コールバック](https://docs.xbox.com/ja-jp/services/playfab/player-progression/game-saves/ui-callbacks.md)
- [方法: コールバックの送信](https://docs.xbox.com/ja-jp/build/core-features/common/async/async-task-queue-design-howto/submitting-callbacks.md)
- [XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md)
