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

> Creates a PlayFab service configuration.

Creates a PlayFab service configuration.

## Syntax

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

### Parameters

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

String used to connect to a PlayFab Service instance.

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

PlayFab TitleId for the title. Found in the Game Manager for your title on the PlayFab Website.

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

Pointer to a PFServiceConfigHandle to write.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_PF\_NOT\_INITIALIZED, or E\_INVALIDARG.

## Requirements

**Header:** PFServiceConfig.h

## See also

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


## Related topics

- [Event Pipeline Tutorial](/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [SDK Lifecycle](/services/playfab/sdks/c/lifecycle.md)
- [Services C API overview - PFServiceConfig.h](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)
- [PFAuthenticationLoginWithNintendoServiceAccountAsync](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountasync.md)
- [PFAuthenticationLoginWithGooglePlayGamesServicesAsync](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithgoogleplaygamesservicesasync.md)
