> ## 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 的回溯相容性

> 移植現有的 XBOX Live 遊戲程式碼時，包含 GDK 隨附的 xsapi-cpp 相容性標頭，以繼續使用 XDK 時代的 C++ XSAPI。

## 存取 XDK XSAPI 相容性標頭

雖然 XSAPI (XBOX 服務 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 簡介](/zh-TW/services/xbox-services/fundamentals/xbox-services-api/live-xsapi-flat-c)

[XSAPI 參考](/zh-TW/reference/live/xsapi-c/atoc-xsapi-c)


## Related topics

- [XBOX 服務 API](/zh-TW/services/xbox-services/fundamentals/xbox-services-api/index.md)
- [雙 SKU 跨世代遊戲](/zh-TW/build/console-features/cross-gen/cross-gen-dual-sku.md)
- [回溯相容性和玩家代號轉換](/zh-TW/services/xbox-services/fundamentals/identity/user-profile/gamertags/live-modern-backwards-compatibility.md)
- [僅透過回溯相容性進行跨世代遊戲](/zh-TW/build/console-features/cross-gen/cross-gen-backcompat-only.md)
- [XBOX PC Remote Iteration API](/zh-TW/reference/remoting/remoteiteration_members.md)
