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

# XblInitialize

> XblInitialize

# XblInitialize

Initializes the library instance.

## Syntax

```cpp theme={null}
HRESULT XblInitialize(  
         const XblInitArgs* args  
)  
```

### Parameters

*args*   \_In\_\
Type: [XblInitArgs\*](/reference/live/xsapi-c/xbox_live_global_c/structs/xblinitargs)

Platform-specific args for XblInitialize.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

This must be called before any other Xbl\* method, except for XblMemSetFunctions() and XblMemGetFunctions(). Should have a corresponding call to XblCleanup().

## Requirements

**Header:** xbox\_live\_global\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[xbox\_live\_global\_c](/reference/live/xsapi-c/xbox_live_global_c/xbox_live_global_c_members)


## Related topics

- [Troubleshooting Sign-in and Sandbox Errors](/services/xbox-services/develop/troubleshooting/live-troubleshoot-sandboxes.md)
- [XblGetScid](/reference/live/xsapi-c/xbox_live_global_c/functions/xblgetscid.md)
- [XblLocalStorageSetHandlers](/reference/live/xsapi-c/platform_c/functions/xbllocalstoragesethandlers.md)
- [Integrate the GDK with a custom C/C++ engine](/build/gdk-and-engines/custom-engine.md)
- [XblGetAsyncQueue](/reference/live/xsapi-c/xbox_live_global_c/functions/xblgetasyncqueue.md)
