> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\*\
*In\_z*

用于连接到 PlayFab 服务实例的字符串。

**`playFabTitleId`**   char\*\
*In\_z*

标题的 PlayFab TitleId。可在 PlayFab 网站上你的标题的 Game Manager 中找到。

**`serviceConfigHandle`**   PFServiceConfigHandle\*\
*output*

指向要写入的 PFServiceConfigHandle 的指针。

### 返回值

类型：HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_PF\_NOT\_INITIALIZED 或 E\_INVALIDARG。

## 要求

**头文件：** PFServiceConfig.h

## 另请参阅

[PFServiceConfig 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)


## Related topics

- [事件管道教程](https://docs.xbox.com/zh-CN/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [PFAuthenticationLoginWithNintendoServiceAccountAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountasync.md)
- [PFAuthenticationLoginWithGooglePlayGamesServicesAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgoogleplaygamesservicesasync.md)
- [PFAuthenticationLoginWithPSNAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithpsnasync.md)
- [PFAuthenticationLoginWithAppleAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithappleasync.md)
