Skip to main content

XUserAddByIdWithUiResult

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

Syntax

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.

Remarks

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

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 August 20, 2026