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

# 与 XDK Xbox 服务 API 的向后兼容性

> 包含随 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 简介](https://docs.xbox.com/zh-CN/services/xbox-services/fundamentals/xbox-services-api/live-xsapi-flat-c.md)

[XSAPI 参考](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/atoc-xsapi-c.md)


## Related topics

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