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

# XblInitialize

> XblInitialize

# XblInitialize

初始化库实例。

## 语法

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

### 参数

*args*   \_In\_\
类型：[XblInitArgs\*](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/xbox_live_global_c/structs/xblinitargs.md)

XblInitialize 的平台特定参数。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 备注

必须在调用任何其他 Xbl\* 方法之前调用此方法，但 XblMemSetFunctions() 和 XblMemGetFunctions() 除外。应有相应的 XblCleanup() 调用。

## 要求

**头文件：** xbox\_live\_global\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[xbox\_live\_global\_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/xbox_live_global_c/xbox_live_global_c_members.md)


## Related topics

- [登录和沙盒错误故障排除](https://docs.xbox.com/zh-CN/services/xbox-services/develop/troubleshooting/live-troubleshoot-sandboxes.md)
- [XblGetScid](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/xbox_live_global_c/functions/xblgetscid.md)
- [XblLocalStorageSetHandlers](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/platform_c/functions/xbllocalstoragesethandlers.md)
- [XblGetAsyncQueue](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/xbox_live_global_c/functions/xblgetasyncqueue.md)
- [XblMultiplayerActivityUpdateRecentPlayers](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/multiplayer_activity_c/functions/xblmultiplayeractivityupdaterecentplayers.md)
