XUserFindControllerForUserWithUiResult
Retrieves the application local device ID (APP_LOCAL_DEVICE_ID) that a user has chosen to use.
Syntax
HRESULT XUserFindControllerForUserWithUiResult(
XAsyncBlock* async,
APP_LOCAL_DEVICE_ID* deviceId
)
Parameters
async _Inout_
Type: XAsyncBlock*
The async block sent to XUserFindControllerForUserWithUiAsync.
deviceId _Out_
Type: APP_LOCAL_DEVICE_ID*
The device ID of the controller that is now associated to the user.
Return value
Type: HRESULT
HRESULT success or error code. For a list of error codes, see Error Codes.
Remarks
On desktop, this function will always return an all-zero device ID.
Requirements
Header: XUser.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles
See also
XUser
Dealing with Controller Loss (NDA topic)Requiere autorización