Skip to main content
Retrieves a handle to the user that XUserAddByIdWithUiAsync creates. This function should only be used in response to a game invite.

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
The XAsyncBlock previously sent to XUserAddByIdWithUiAsync. 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.

Remarks

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

Requirements

Header: XUser.h Library: xgameruntime.lib Supported platforms: Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

See also

XUser
XUserCloseHandle
Last modified on October 29, 2026