XUserDuplicateHandle
Duplicates a user handle.
Syntax
HRESULT XUserDuplicateHandle(
XUserHandle handle,
XUserHandle* duplicatedHandle
)
Parameters
handle _In_
Type: XUserHandle
The user handle to duplicate.
duplicatedHandle _Out_
Type: XUserHandle*
Contains the duplicate user handle.
Return value
Type: HRESULT
HRESULT success or error code.
For a list of error codes, see Error Codes.
Remarks
An XUserHandle represents an XBox game user. To see if two different XUserHandles point to the same user, call the XUserCompare function.
To close a user handle, call XUserCloseHandle.
Requirements
Header: XUser.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles