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

# XUserPlatformSpopPromptEventHandler

> XUserPlatformSpopPromptEventHandler

# XUserPlatformSpopPromptEventHandler

SPOP 操作のためのプロンプトを表示するイベント ハンドラーです。

## 構文

```cpp theme={null}
typedef void (XUserPlatformSpopPromptEventHandler)(
    _In_opt_ void* context,
    _In_ uint32_t userIdentifier,
    _In_ XUserPlatformOperation operation,
    _In_z_ char const* modernGamertag,
    _In_opt_z_ char const* modernGamertagSuffix
);
```

## パラメーター

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

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

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

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

*operation*   \_In\_\
Type: XUserPlatformOperation

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

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

ユーザーのモダン ゲーマータグです。

*modernGamertagSuffix*   \_In\_opt\_z\_\
Type: char const\*

モダン ゲーマータグのサフィックス (存在する場合)。一部のユーザーでは null になる場合があります。

### 戻り値

### 解説

このイベントは、ユーザーが別のデバイスで既にサインインしているために SPOP 拒否 (veto) に該当した場合に発生します。XUser は、別のセッションからサインアウトして現在のデバイスでサインインするかどうかをユーザーに促す必要があります。これは、SPOP 拒否となった XUserAddUserWithUiAsync の呼び出しに応答してのみ発生します。

モダン ゲーマータグのサフィックスは、一部のユーザーでは null になる場合があります。

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

## 要件

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

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

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

## 関連項目

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

[XUserPlatformSpopPromptSetEventHandlers](/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers)

[XUserPlatformSpopPromptClearEventHandler](/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler)

[XUserPlatformSpopPromptComplete](/reference/system/xuser/functions/xuserplatformspoppromptcomplete)

[XUserPlatformSpopOperationResult](/reference/system/xuser/enums/xuserplatformspopoperationresult)


## Related topics

- [XUserPlatformSpopPromptSetEventHandlers](/ja-jp/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers.md)
- [XUserPlatformSpopPromptClearEventHandler](/ja-jp/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler.md)
- [XUserPlatformSpopPromptComplete](/ja-jp/reference/system/xuser/functions/xuserplatformspoppromptcomplete.md)
- [XUserPlatformSpopOperationResult](/ja-jp/reference/system/xuser/enums/xuserplatformspopoperationresult.md)
- [XUser](/ja-jp/reference/system/xuser/xuser_members.md)
