Skip to main content
This article lists the preprocessor definitions that are specific to the Microsoft Game Development Kit (GDK) on XBOX. Use the following preprocessor definitions for Microsoft Game Development Kit (GDK) on XBOX code.
When you build by using the Microsoft Game Development Kit (GDK), the Visual Studio integrated development environment (IDE) Microsoft Build rules automatically define _GAMING_XBOX and WINAPI_FAMILY=WINAPI_FAMILY_GAMES. Developers who don’t use the Visual Studio IDE to build against the Microsoft Game Development Kit (GDK) must supply these values on the compiler command-line.

Gaming.Xbox.XboxOne.x64

Gaming.Xbox.Scarlett.x64

Gaming.Desktop.x64

These defines also apply to ‘classic’ x64 platforms when you use the Microsoft Game Development Kit.
When you write Microsoft cross-platform code, you can use the following construction.
Last modified on August 20, 2026