GetExpandedResourceExclusiveCpuCount function

Gets the expected number of exclusive CPU sets that are available to the app when in Game Mode.

Syntax

HRESULT GetExpandedResourceExclusiveCpuCount(
  ULONG *exclusiveCpuCount
);

Parameters

exclusiveCpuCount

The expected number of exclusive CPU sets that are available to the app when in Game Mode.

Return Value

The result of the operation.

Remarks

This is a Win32 API that's supported in UWP desktop and Xbox apps, as well as Win32 apps.

You can use this function to determine what resources are available to your app, and use this information to decide whether to enter Game Mode or shared mode.

This function returns 0 if no exclusive CPU sets are available, or if the customer opted out of Game Mode via the Settings in Windows 10.

The app must be in the foreground and have focus before exclusive resources are granted.

Requirements

   
Target Platform Windows
Header expandedresources.h
Library Windowsapp.lib
DLL Gamemode.dll