> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XUserPlatformSpopPromptSetEventHandlers

> XUserPlatformSpopPromptSetEventHandlers

# XUserPlatformSpopPromptSetEventHandlers

设置 SPOP 提示事件处理程序。

## 语法

```cpp theme={null}
STDAPI  XUserPlatformSpopPromptSetEventHandlers(
    _In_opt_ XTaskQueueHandle queue,
    _In_ XUserPlatformSpopPromptEventHandler* handler,
    _In_opt_ void* context
) noexcept;
```

### 参数

*queue*   \_In\_opt\_\
类型：XTaskQueueHandle

*handler*   \_In\_\
类型：XUserPlatformSpopPromptEventHandler

要为 SPOP 提示设置的事件处理程序。请参阅 [XUserPlatformSpopPromptEventHandler](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xuserplatformspopprompteventhandler.md)

*context*   \_In\_opt\_\
类型：void\*

### 返回值

类型：STDAPI

此 API 操作的结果代码。

## 注解

必须在 XUserInitialize 之前调用。

## 要求

**头文件：** XUser.h

**库：** xgameruntime.lib

**支持的平台：** 在 Steam Deck 上受支持

## 另请参阅

[XUser](https://docs.xbox.com/zh-CN/reference/system/xuser/xuser_members.md)

[XUserPlatformSpopPromptEventHandler](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xuserplatformspopprompteventhandler.md)

[XUserPlatformSpopPromptClearEventHandler](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler)

[XUserPlatformSpopPromptComplete](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xuserplatformspoppromptcomplete.md)

[XUserPlatformSpopOperationResult](https://docs.xbox.com/zh-CN/reference/system/xuser/enums/xuserplatformspopoperationresult.md)


## Related topics

- [XUserPlatformSpopPromptEventHandler](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xuserplatformspopprompteventhandler.md)
- [XUserPlatformSpopPromptComplete](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xuserplatformspoppromptcomplete.md)
- [XUserPlatformSpopOperationResult](https://docs.xbox.com/zh-CN/reference/system/xuser/enums/xuserplatformspopoperationresult.md)
- [XUser 跨平台支持](https://docs.xbox.com/zh-CN/build/core-features/common/user/xuser-crossplatform.md)
- [XUser（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xuser/xuser_members.md)
