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

# PFPlatformLocalStorageSetHandlers

> 設定儲存體事件處理常式。如果未設定自訂儲存體處理常式，將使用以 cstdio 和 std::fstream 物件為基礎的預設實作。

設定儲存體事件處理常式。如果未設定自訂儲存體處理常式，將使用以 cstdio 和 std::fstream 物件為基礎的預設實作。

## 語法

```cpp theme={null}
HRESULT PFPlatformLocalStorageSetHandlers(  
    PFLocalStorageHooks* hooks  
)  
```

### 參數

**`hooks`**   [PFLocalStorageHooks\*](/zh-TW/services/playfab/api-references/c/pfplatform/structs/pflocalstoragehooks)

SDK 要使用的自訂本機儲存體攔截。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

必須在 PFInitialize 之前呼叫。

## 需求

**標頭：** 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)
- [XblLocalStorageSetHandlers](/zh-TW/reference/live/xsapi-c/platform_c/functions/xbllocalstoragesethandlers.md)
- [XblLocalStorageClearHandler](/zh-TW/reference/live/xsapi-c/platform_c/functions/xbllocalstorageclearhandler.md)
- [XblLocalStorageReadHandler](/zh-TW/reference/live/xsapi-c/platform_c/functions/xbllocalstoragereadhandler.md)
- [XblLocalStorageWriteHandler](/zh-TW/reference/live/xsapi-c/platform_c/functions/xbllocalstoragewritehandler.md)
