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

# XUserPlatformRemoteConnectSetEventHandlers

> 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`](/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`](/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)

[`XUserPlatformRemoteConnectShowPromptEventHandler`](/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler)

[`XUserPlatformRemoteConnectClosePromptEventHandler`](/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler)

[`XUserPlatformRemoteConnectCancelPrompt`](/reference/system/xuser/functions/xuserplatformremoteconnectcancelprompt)


## Related topics

- [XUserPlatformRemoteConnectEventHandlers](/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers.md)
- [XUserPlatformRemoteConnectClosePromptEventHandler](/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
- [XUserPlatformRemoteConnectCancelPrompt](/reference/system/xuser/functions/xuserplatformremoteconnectcancelprompt.md)
- [XUserPlatformOperationResult](/reference/system/xuser/enums/XUserPlatformOperationResult.md)
