XUserResolvePrivilegeWithUiResult
Retrieves the result of a call to XUserResolvePrivilegeWithUiAsync.
Syntax
HRESULT XUserResolvePrivilegeWithUiResult(
XAsyncBlock* async
)
Parameters
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.
Return Code | Description |
---|---|
S_OK | The operation succeeded |
E_ABORT | The user canceled the operation |
E_GAMEUSER_FAILED_TO_RESOLVE | Failed to resolve the given privilege |
E_GAMEUSER_NO_AUTH_USER | The game should call XUserResolvePrivilegeWithUiAsync again. |
Remarks
NOTE: If XUserResolvePrivilegeWithUiAsync is called shortly after network connectivity is established, XUserResolvePrivilegeWithUiResult might return E_GAMEUSER_NO_AUTH_USER even though you have a signed in user. Games hitting this issue should try calling XUserResolvePrivilegeWithUiAsync again.
To display a user interface that allows a user to resolve privilege issues, call XUserResolvePrivilegeWithUiAsync.
The following example shows how to use the XUserResolvePrivilegeWithUiResult function.
HRESULT hr = XUserResolvePrivilegeWithUiResult(asyncBlock);
if (SUCCEEDED(hr))
{
OutputDebugStringA(""Successfully resolved privilege\n"");
}
else
{
OutputDebugStringA(""Failed to resolved privilege\n"");
}
Requirements
Header: XUser.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles