> ## 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\_\
类型：void\*

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

*userIdentifier*   \_In\_\
类型：uint32\_t

在添加用户时传递给 XUser 的用户标识符。

*operation*   \_In\_\
类型：XUserPlatformOperation

此操作的句柄。

*modernGamertag*   \_In\_z\_\
类型：char const\*

用户的现代玩家代号。

*modernGamertagSuffix*   \_In\_opt\_z\_\
类型：char const\*

现代玩家代号后缀（如有）。对于某些用户，可能为 null。

### 返回值

### 注解

当用户已经在其他设备上登录，因而触发 SPOP 否决时，会引发此事件。XUser 需要提示用户决定是否要注销其他会话并在当前设备上登录。此情况只会作为对调用 XUserAddUserWithUiAsync 时导致 SPOP 否决的响应而发生。

对于某些用户，现代玩家代号后缀可能为 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](/zh-CN/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers.md)
- [XUserPlatformSpopPromptClearEventHandler](/zh-CN/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler.md)
- [XUserPlatformSpopPromptComplete](/zh-CN/reference/system/xuser/functions/xuserplatformspoppromptcomplete.md)
- [XUserPlatformSpopOperationResult](/zh-CN/reference/system/xuser/enums/xuserplatformspopoperationresult.md)
- [XUser](/zh-CN/reference/system/xuser/xuser_members.md)
