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

# PFInitialize

> Android 以外のプラットフォームで PlayFabCore のグローバル状態を初期化し、PlayFab クライアント API を使用できるようにします。事前にカスタム プラットフォーム フックを構成しておく必要があります。

PlayFabCore のグローバル状態を初期化します。PFInitialize を呼び出す前に、カスタム プラットフォーム フックを構成する必要があります。

## 構文

```cpp theme={null}
HRESULT PFInitialize(  
    XTaskQueueHandle backgroundQueue  
)  
```

### パラメーター

**`backgroundQueue`**   XTaskQueueHandle<br />*optional*

バックグラウンド処理に使用する XTaskQueue。キューが指定されていない場合、既定 (スレッドプール) のキューが使用されます。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 要件

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

## 関連項目

[PFCore のメンバー](/services/playfab/api-references/c/pfcore/pfcore_members)


## Related topics

- [PFInitialize (Android overload)](/ja-jp/services/playfab/api-references/c/pfcore/functions/pfinitialize_2.md)
- [PFServicesInitialize](/ja-jp/services/playfab/api-references/c/pfservices/functions/pfservicesinitialize.md)
- [Services C API overview - PFCore.h](/ja-jp/services/playfab/api-references/c/pfcore/pfcore_members.md)
- [PFServicesInitialize (バックグラウンド キューのオーバーロード)](/ja-jp/services/playfab/api-references/c/pfservices/functions/pfservicesinitialize_2.md)
- [PFMemSetFunctions](/ja-jp/services/playfab/api-references/c/pfplatform/functions/pfmemsetfunctions.md)
