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

# PFServicesInitialize

> Initializes PlayFab Services global state so title code can call PlayFab Services APIs. A reserved XTaskQueueHandle parameter is retained for future use.

Initializes PlayFab Services global state

## Syntax

```cpp theme={null}
HRESULT PFServicesInitialize(  
    XTaskQueueHandle reserved  
)  
```

### Parameters

**`reserved`**   XTaskQueueHandle<br />*optional*

Reserved for future use.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This will internally call PFInitialize(nullptr) if it hasn't been called already by the title. If control of PFCore background work is needed, the title should explicitly call PFInitialize and PFUninitialize.

## Requirements

**Header:** PFServices.h

## See also

[PFServices members](/services/playfab/api-references/c/pfservices/pfservices_members)


## Related topics

- [PFServicesInitialize (background queue overload)](/services/playfab/api-references/c/pfservices/functions/pfservicesinitialize_2.md)
- [Services C API overview - PFServices.h](/services/playfab/api-references/c/pfservices/pfservices_members.md)
- [SDK Lifecycle](/services/playfab/sdks/c/lifecycle.md)
- [Memory hooking](/services/playfab/sdks/c/memory.md)
- [PFServicesUninitializeAsync](/services/playfab/api-references/c/pfservices/functions/pfservicesuninitializeasync.md)
