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

# PFServiceConfigCreateHandle

> 建立 PlayFab 服務設定。

建立 PlayFab 服務設定。

## 語法

```cpp theme={null}
HRESULT PFServiceConfigCreateHandle(  
    const char* apiEndpoint,  
    const char* playFabTitleId,  
    PFServiceConfigHandle* serviceConfigHandle  
)  
```

### 參數

**`apiEndpoint`**   char\*<br />*In\_z*

用來連線至 PlayFab 服務執行個體的字串。

**`playFabTitleId`**   char\*<br />*In\_z*

遊戲的 PlayFab TitleId。可在 PlayFab 網站上您遊戲的 Game Manager 中找到。

**`serviceConfigHandle`**   PFServiceConfigHandle\*<br />*output*

要寫入的 PFServiceConfigHandle 指標。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_PF\_NOT\_INITIALIZED 或 E\_INVALIDARG。

## 需求

**標頭：** PFServiceConfig.h

## 另請參閱

[PFServiceConfig 成員](/zh-TW/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members)


## Related topics

- [事件管線教學課程](/zh-TW/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [PFAuthenticationLoginWithNintendoServiceAccountAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountasync.md)
- [PFAuthenticationLoginWithGooglePlayGamesServicesAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgoogleplaygamesservicesasync.md)
- [PFAuthenticationLoginWithCustomIDAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithcustomidasync.md)
- [PFAuthenticationLoginWithFacebookAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithfacebookasync.md)
