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

# XUserPlatformRemoteConnectShowPromptEventHandler

> XUserPlatformRemoteConnectShowPromptEventHandler

# XUserPlatformRemoteConnectShowPromptEventHandler

リモート接続認証用のプロンプトを表示するためのイベント ハンドラーです。

## 構文

```cpp theme={null}
typedef void (XUserPlatformRemoteConnectShowPromptEventHandler)(
    _In_opt_ void* context,
    _In_ uint32_t userIdentifier,
    _In_ XUserPlatformOperation operation,
    _In_z_ char const* url,
    _In_z_ char const* code,
    _In_ size_t qrCodeSize,
    _In_reads_bytes_(qrCodeSize) void const* qrCode
);
```

### パラメーター

*context*    \_In\_opt\_\
Type: void\*

イベント ハンドラーで使用されるデータへの任意ポインター。

*userIdentifier*    \_In\_\
Type: uint32\_t

ユーザーが追加されたときに XUser に渡されたユーザー識別子です。

*operation*   \_In\_\
Type: XUserPlatformOperation

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

*url*    \_In\_z\_\
Type: char const\*

プロンプトに表示する URL です。

*code*    \_In\_z\_\
Type: char const\*

プロンプトに表示するコードです。

*qrCodeSize*    \_In\_\
Type: size\_t

qrCode バッファーのサイズです。

*qrCode*    \_In\_reads\_bytes\_\
Type: void const\*

URL の QR コードを PNG として格納したバッファーへのポインターです。

### 戻り値

## 解説

このイベントは、リモート接続認証プロセスを実行するようユーザーに促す必要があるときに XUser によって発生します。

XUserPlatformRemoteConnectClosePromptEventHandler が呼び出されるか、ユーザーが閉じるまで、プロンプト UI を表示し続ける必要があります。

ユーザーが QR コードをスキャンできない場合に備えて、ゲームは取得した URL とコードを引き続き表示する必要があります。QR コードにはコードは埋め込まれません。

すべての引数は呼び出し元が所有します (context を除く)。

## 要件

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

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

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

## 関連項目

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

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

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

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


## Related topics

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