Share via


GameMonitoringPermission Enum

Definition

Indicates the game monitoring permission state of the device.

Important

As of Windows 10, version 1809 (10.0; Build 17763), this API is removed from the public API surface of Windows.

public enum class GameMonitoringPermission
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
enum class GameMonitoringPermission
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
public enum GameMonitoringPermission
var value = Windows.Gaming.UI.GameMonitoringPermission.allowed
Public Enum GameMonitoringPermission
Inheritance
GameMonitoringPermission
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Fields

Name Value Description
Allowed 0

The customer has enabled game monitoring through the dialog displayed by Windows.Gaming.UI.GameMonitor.RequestPermissionAsync, or game monitoring is already enabled.

DeniedByUser 1

The customer has cancelled the dialog or chosen not to give consent to enable game monitoring.

DeniedBySystem 2

The customer can't give consent for reasons outside their control, such as a group policy.

Remarks

This class uses TruePlay, a system on Windows 10 that helps to combat cheating in PC games. As of Windows 10, version 1809 (10.0; Build 17763), TruePlay is removed from Windows. A game enrolled in TruePlay will run in a protected process, which mitigates a class of common attacks. The TruePlay APIs for UWP allow limited interaction between games and the game monitoring system on Windows 10 PCs.

You can use these WinRT APIs, in tandem with the native APIs in <gamemonitor.h>, to work with the game monitoring system. The documentation for TruePlay is no longer published.

Applies to

See also