> ## 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*\
Type: XUserPlatformOperation

この操作のハンドルです。

### 戻り値

Type: HRESULT

この API 操作の結果コードです。

## 解説

これは、ユーザーがプロンプトを閉じた場合に XUserPlatformRemoteConnectShowPromptEventHandler の後に呼び出す必要があります。

リモート接続プロセス全体がキャンセルされ、開始時の XUserAdd 操作は E\_ABORT で完了します。

XUserPlatformRemoteConnectClosePromptEventHandler は通常どおり呼び出されます。

## 要件

**ヘッダー:** XUser.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Steam Deck でサポート

## 関連項目

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

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

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

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


## Related topics

- [XUserPlatformRemoteConnectClosePromptEventHandler](/ja-jp/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](/ja-jp/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
- [XUserPlatformRemoteConnectEventHandlers](/ja-jp/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers.md)
- [XUserPlatformRemoteConnectSetEventHandlers](/ja-jp/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers.md)
- [XUserPlatformOperationResult](/ja-jp/reference/system/xuser/enums/XUserPlatformOperationResult.md)
