> ## 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-TW/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-TW/reference/system/xuser/xuser_members.md)

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

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

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

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


## Related topics

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