> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XUserPlatformRemoteConnectSetEventHandlers

> XUserPlatformRemoteConnectSetEventHandlers

Sets the remote connect event handlers

## Syntax

```cpp theme={null}
HRESULT XUserPlatformRemoteConnectSetEventHandlers(
    _In_opt_ XTaskQueueHandle queue,
    _In_ XUserPlatformRemoteConnectEventHandlers* handlers
) noexcept;
```

### Parameters

*queue*\
Type: `XTaskQueueHandle` (optional)

The async queue on which the callbacks should be invoked.

*handlers*\
Type: [`XUserPlatformRemoteConnectEventHandlers`](https://docs.xbox.com/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)

The event handlers.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

## Requirements

**Header:** XUser.h

**Library:** xgameruntime.lib

**Supported platforms:** Supported on Steam Deck

## See also

[`XUserPlatformRemoteConnectEventHandlers`](https://docs.xbox.com/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)

[`XUserPlatformRemoteConnectShowPromptEventHandler`](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler)

[`XUserPlatformRemoteConnectClosePromptEventHandler`](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler)

[`XUserPlatformRemoteConnectCancelPrompt`](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectcancelprompt)


## Related topics

- [XUserPlatformRemoteConnectEventHandlers](https://docs.xbox.com/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers.md)
- [XUserPlatformRemoteConnectClosePromptEventHandler](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
- [XUserPlatformRemoteConnectCancelPrompt](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectcancelprompt.md)
- [XUser Cross-Platform Support](https://docs.xbox.com/build/core-features/common/user/xuser-crossplatform.md)
