Skip to main content

XUserPrivilegeDenyReason

Specifies the reason a user could not obtain a privilege.

Syntax

Constants

Remarks

To check if a user has a specific privilege, call the XUserCheckPrivilege function. The function accepts a pointer to an XUserPrivilegeDenyReason enumeration as an argument. The function returns an XUserPrivilege enumeration.
alert NOTE: The value returned in the reason argument is informational only, and may be inaccurate in many scenarios. This value should not be used to make decisions in your title.

Requirements

Header: XUser.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XUser XUserCheckPrivilege XUserPrivilege
Last modified on August 20, 2026