> ## 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

設定遠端連線事件處理常式

## 語法

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

### 參數

*queue*\
類型：`XTaskQueueHandle` (選擇性)

應在其上叫用回呼的非同步佇列。

*handlers*\
類型：[`XUserPlatformRemoteConnectEventHandlers`](/zh-TW/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)

事件處理常式。

### 傳回值

類型：HRESULT

此 API 作業的結果碼。

## 備註

## 需求

**標頭：** XUser.h

**程式庫：** xgameruntime.lib

**支援的平台：** 在 Steam Deck 上支援

## 另請參閱

[`XUserPlatformRemoteConnectEventHandlers`](/zh-TW/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)

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

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

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


## Related topics

- [XUserPlatformRemoteConnectSetEventHandlers](/ko/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers.md)
- [XUserPlatformRemoteConnectEventHandlers](/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers.md)
