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

# XUserPlatformRemoteConnectEventHandlers

> XUserPlatformRemoteConnectEventHandlers

# XUserPlatformRemoteConnectEventHandlers

封装远程连接事件处理程序

## 语法

```cpp theme={null}
typedef struct XUserPlatformRemoteConnectEventHandlers {
    XUserPlatformRemoteConnectShowPromptEventHandler* show;
    XUserPlatformRemoteConnectClosePromptEventHandler* close;
    void* context;
} XUserPlatformRemoteConnectEventHandlers;
```

### 成员

*show*
类型：XUserPlatformRemoteConnectShowPromptEventHandler\*

显示提示的处理程序

*close*
类型：XUserPlatformRemoteConnectClosePromptEventHandler\*

关闭提示的处理程序

*context*
类型：void\*

事件处理程序使用的数据的可选指针。

## 备注

必须同时设置两个处理程序。

## 要求

**头文件：** XUser.h

**支持的平台：** 支持 Steam Deck

## 另请参阅

[XUser](/reference/system/xuser/xuser_members)

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

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

[XUserPlatformRemoteConnectSetEventHandlers](/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers)

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


## Related topics

- [XUserPlatformRemoteConnectSetEventHandlers](/zh-CN/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers.md)
- [XUserPlatformRemoteConnectClosePromptEventHandler](/zh-CN/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](/zh-CN/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
- [XUserPlatformRemoteConnectCancelPrompt](/zh-CN/reference/system/xuser/functions/xuserplatformremoteconnectcancelprompt.md)
- [XUserPlatformOperationResult](/zh-CN/reference/system/xuser/enums/XUserPlatformOperationResult.md)
