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

# PFMemoryHooks

> メモリ フックをカプセル化する構造体。

メモリ フックをカプセル化する構造体。

## 構文

```cpp theme={null}
typedef struct PFMemoryHooks {  
    PFMemAllocFunction* alloc;  
    PFMemFreeFunction* free;  
} PFMemoryHooks;  
```

### メンバー

**`alloc`**   PFMemAllocFunction\*

カスタム割り当てフック。

**`free`**   PFMemFreeFunction\*

カスタム解放フック。

## 解説

両方のフックは同時に設定する必要があります。

## 要件

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

## 関連項目

[PFPlatform のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatform/pfplatform_members.md)


## Related topics

- [PFMemSetFunctions](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatform/functions/pfmemsetfunctions.md)
- [サービス C API の概要 - PFPlatform.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [PFMemGetFunctions](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatform/functions/pfmemgetfunctions.md)
- [PlayFab 統合 SDK でのメモリ管理](https://docs.xbox.com/ja-jp/services/playfab/sdks/unified-sdk/memory-management.md)
- [XMemSetWin32HeapTrackingHooks](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemsetwin32heaptrackinghooks.md)
