> ## 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 网站上你的标题的游戏管理器中找到。

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

指向要写入的 PFServiceConfigHandle 的指针。

### 返回值

类型：HRESULT

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

## 要求

**头文件：** PFServiceConfig.h

## 另请参阅

[PFServiceConfig 成员](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members)


## Related topics

- [事件管道教程](/zh-CN/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [PFAuthenticationLoginWithNintendoServiceAccountAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountasync.md)
- [PFAuthenticationLoginWithGooglePlayGamesServicesAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgoogleplaygamesservicesasync.md)
- [PFAuthenticationLoginWithPSNAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithpsnasync.md)
- [PFAuthenticationLoginWithFacebookAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithfacebookasync.md)
