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

# PFMemGetFunctions

> 获取内存挂钩函数，以允许调用方将内存分配路由到自己的内存管理器。此方法可让应用程序获取默认的内存分配例程。

获取内存挂钩函数，以允许调用方将内存分配路由到自己的内存管理器。此方法可让应用程序获取默认的内存分配例程。可与 PFMemSetFunctions() 结合使用来监视所有内存分配。

## 语法

```cpp theme={null}
HRESULT PFMemGetFunctions(  
    PFMemoryHooks* hooks  
)  
```

### 参数

**`hooks`**   [PFMemoryHooks\*](/services/playfab/api-references/c/pfplatform/structs/pfmemoryhooks)<br />*output*

将使用当前内存挂钩填充的结构。如果之前未设置自定义挂钩，将返回默认值。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 要求

**头文件：** PFPlatform.h

## 另请参阅

[PFPlatform 成员](/services/playfab/api-references/c/pfplatform/pfplatform_members)


## Related topics

- [服务 C API 概览 - PFPlatform.h](/zh-CN/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [HCMemGetFunctions](/zh-CN/reference/live/httpclient/httpclient/functions/hcmemgetfunctions.md)
- [XblMemGetFunctions](/zh-CN/reference/live/xsapi-c/xbox_live_global_c/functions/xblmemgetfunctions.md)
- [XMemGetTitleHeap](/zh-CN/reference/system/xmem/functions/xmemgettitleheap.md)
- [XMemGetWin32HeapName](/zh-CN/reference/system/xmem/functions/xmemgetwin32heapname.md)
