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

# 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](/reference/system/xuser/functions/xuserplatformspopprompteventhandler)

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

### 返回值

类型：STDAPI

此 API 操作的结果代码。

## 注解

必须在 XUserInitialize 之前调用。

## 要求

**头文件：** XUser.h

**库：** xgameruntime.lib

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

## 另请参阅

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

[XUserPlatformSpopPromptEventHandler](/reference/system/xuser/functions/xuserplatformspopprompteventhandler)

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

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

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


## Related topics

- [XUserPlatformSpopPromptEventHandler](/zh-CN/reference/system/xuser/functions/xuserplatformspopprompteventhandler.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)
