XUserPrivilegeDenyReason

Specifies the reason a user could not obtain a privilege.

Syntax

enum class XUserPrivilegeDenyReason  : uint32_t  
{  
    None = 0,  
    PurchaseRequired = 1,  
    Restricted = 2,  
    Banned = 3,  
    Unknown = 0xFFFFFFFF  
}  

Constants

Constant Description
None No reason.
PurchaseRequired The user must make a purchase.
Restricted Restrictions on the user exist.
Banned A ban on the user exists.
Unknown Unknown reason.

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