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

# 与 XDK XSAPI 的向后兼容性

> 包含随 GDK 附带的 xsapi-cpp 兼容性头，在移植现有 XBOX Live 游戏代码时继续使用 XDK 时代的 C++ XSAPI。

## 访问 XDK XSAPI 兼容性头文件

虽然 XSAPI (XBOX Service API) 作为 C 库提供，但 GDK 还包括随 XDK 附带的 [XSAPI](https://github.com/microsoft/xbox-live-api) 的 C++ 版本的头文件。

如果需要访问此 API，只需包含以下头文件：

```cpp theme={null}
#include <xsapi-cpp\services.h>
```

## 另请参阅

[XSAPI C API 简介](/services/xbox-services/fundamentals/xbox-services-api/live-xsapi-flat-c)

[XSAPI 参考](/reference/live/xsapi-c/atoc-xsapi-c)


## Related topics

- [XBOX services API](/zh-CN/services/xbox-services/fundamentals/xbox-services-api/index.md)
- [向后兼容性和游戏玩家代号转换](/zh-CN/services/xbox-services/fundamentals/identity/user-profile/gamertags/live-modern-backwards-compatibility.md)
- [XBOX PC Remote Iteration API](/zh-CN/reference/remoting/remoteiteration_members.md)
- [Dual SKU 跨世代游戏](/zh-CN/build/console-features/cross-gen/cross-gen-dual-sku.md)
- [MicrosoftGame.config 元素 - XboxCompatibility](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-xboxcompatibility.md)
