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

# XUserPlatformRemoteConnectCancelPrompt

> XUserPlatformRemoteConnectCancelPrompt

# XUserPlatformRemoteConnectCancelPrompt

向 XUser 發出訊號，表示使用者已關閉遠端連線提示。

## 語法

```cpp theme={null}
STDAPI  XUserPlatformRemoteConnectCancelPrompt(
    _In_ XUserPlatformOperation operation
) noexcept;
```

### 參數

*operation*\
類型：XUserPlatformOperation

此作業的控制代碼

### 傳回值

類型：HRESULT

此 API 作業的結果碼

## 備註

如果使用者關閉提示，應在 XUserPlatformRemoteConnectShowPromptEventHandler 之後呼叫此函式。

整個遠端連線程序將會取消，且起始的 XUserAdd 作業會以 E\_ABORT 完成。

XUserPlatformRemoteConnectClosePromptEventHandler 會如常被呼叫。

## 需求

**標頭：** XUser.h

**程式庫：** xgameruntime.lib

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

## 另請參閱

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

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

[`XUserPlatformRemoteConnectSetEventHandlers`](/zh-TW/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers)

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


## Related topics

- [XUserPlatformRemoteConnectCancelPrompt](/reference/system/xuser/functions/xuserplatformremoteconnectcancelprompt.md)
- [XUserPlatformRemoteConnectClosePromptEventHandler](/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](/ko/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
