XUserResolvePrivilegeWithUiAsync

Displays a user interface to allow a user to resolve any issues related to the specified privilege.

Syntax

HRESULT XUserResolvePrivilegeWithUiAsync(  
         XUserHandle user,  
         XUserPrivilegeOptions options,  
         XUserPrivilege privilege,  
         XAsyncBlock* async  
)  

Parameters

user   _In_
Type: XUserHandle

The user that we are displaying the resolution UI to.

options   _In_
Type: XUserPrivilegeOptions

User privilege options.

privilege   _In_
Type: XUserPrivilege

The required user privilege.

async   _Inout_
Type: XAsyncBlock*

An XAsyncBlock for polling for the call's status and retrieving call results.

Return value

Type: HRESULT

HRESULT success or error code.
For a list of error codes, see Error Codes.

Remarks

To retrieve the result of a call to XUserResolvePrivilegeWithUiAsync, call XUserResolvePrivilegeWithUiResult.

The following example shows how to use the XUserResolvePrivilegeWithUiAsync function.

HRESULT hr = XUserResolvePrivilegeWithUiAsync(
  userHandle
  resolveUserPrivilegeOptions,
  privilegeToResolve,
  asyncBlock);

Requirements

Header: XUser.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XUser

XUserResolvePrivilegeWithUiResult