Returns the type of console the title is running on.
CONSOLE_TYPE GetConsoleType()
Type: CONSOLE_TYPE
Returns a CONSOLE_TYPE enumeration value indicating the type of console the title is running on.
GetConsoleType will return the emulated hardware instead of the real hardware the title is running on if the devkit is emulating another console for testing. GetConsoleType is intended to be used by a game to determine what the hardware is, so that it can scale appropriately.
Analytics.DeviceForm, on the other hand, always returns the real hardware the title is running on, even when running on a devkit that is emulating another console for testing. The expected use of DeviceForm is sending a string to a telemetry log in production code to help show issues specific to a console hardware type.
Note: Both Xbox One X Dev Kit Modes (40CU & 44CU) return CONSOLE_TYPE::CONSOLE_TYPE_XBOX_ONE_X_DEVKIT. You can determine how many CUs are available to your title using the GetGpuHardwareConfigurationX method on the ID3D12Device object. This returns a D3D12XBOX_GPU_HARDWARE_CONFIGURATION structure containing the GPU frequency, GPU CU count and D3D12XBOX_HARDWARE_VERSION enumeration.
Header: Declared in winbase.h.
Using Console Modes on Xbox One X Dev Kits to Test Your Game