> ## 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\*](/zh-TW/services/playfab/api-references/c/pfplatform/structs/pfmemoryhooks)<br />*output*

要填入目前記憶體攔截的結構。如果先前未設定自訂攔截，將會傳回預設值。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 需求

**標頭：** PFPlatform.h

## 另請參閱

[PFPlatform 成員](/zh-TW/services/playfab/api-references/c/pfplatform/pfplatform_members)


## Related topics

- [服務 C API 概觀 - PFPlatform.h](/zh-TW/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [HCMemGetFunctions](/zh-TW/reference/live/httpclient/httpclient/functions/hcmemgetfunctions.md)
- [XblMemGetFunctions](/zh-TW/reference/live/xsapi-c/xbox_live_global_c/functions/xblmemgetfunctions.md)
- [XMemGetTitleHeap](/zh-TW/reference/system/xmem/functions/xmemgettitleheap.md)
- [XMemGetWorkingSetStatistics](/zh-TW/reference/system/xmem/functions/xmemgetworkingsetstatistics.md)
