XUserAddByIdWithUiResult

Retrieves a handle to the user that XUserAddByIdWithUiAysnc creates. This function should only be used in response to a game invite.

Syntax

HRESULT XUserAddByIdWithUiResult(  
         XAsyncBlock* async,  
         XUserHandle* newUser  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

The XAsyncBlock previously sent to XUserAddByIdWithUiAysnc.

newUser   _Out_
Type: XUserHandle*

Contains a handle to the new user.

Return value

Type: HRESULT

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

Return Code Description
S_OK The operation succeeded.
E_GAMEUSER_USER_NOTFOUND The user specified in the XUID passed into XUserAddByIdWithUiAysnc is no longer signed into the device.

Remarks

For more details on how to use this function, see XUserAddByIdWithUiAysnc.

Requirements

Header: XUser.h

Library: xgameruntime.lib

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

See also

XUser
XUserCloseHandle