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

# PFServiceConfigGetTitleIdSize

> Gets the size of the buffer needed to hold the PlayFab titleId for a service configuration.

Gets the size of the buffer needed to hold the PlayFab titleId for a service configuration.

## Syntax

```cpp theme={null}
HRESULT PFServiceConfigGetTitleIdSize(  
    PFServiceConfigHandle handle,  
    size_t* titleIdSize  
)  
```

### Parameters

**`handle`**   PFServiceConfigHandle

ServiceConfig handle.

**`titleIdSize`**   size\_t\*\
*output*

Buffer size required for the titleId (including null terminator).

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFServiceConfig.h

## See also

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


## Related topics

- [PFServiceConfigGetTitleId](https://docs.xbox.com/services/playfab/api-references/c/pfserviceconfig/functions/pfserviceconfiggettitleid.md)
- [Services C API overview - PFServiceConfig.h](https://docs.xbox.com/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)
- [SDK Lifecycle](https://docs.xbox.com/services/playfab/sdks/c/lifecycle.md)
- [PFEntityGetTitleIdSize](https://docs.xbox.com/services/playfab/api-references/c/pfentity/functions/pfentitygettitleidsize.md)
- [PFServiceConfigGetAPIEndpointSize](https://docs.xbox.com/services/playfab/api-references/c/pfserviceconfig/functions/pfserviceconfiggetapiendpointsize.md)
