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

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

### 傳回值

類型：STDAPI

此 API 作業的結果碼。

## 備註

必須在 XUserInitialize 之前呼叫。

## 需求

**標頭：** XUser.h

**程式庫：** xgameruntime.lib

**支援的平台：** 在 Steam Deck 上支援

## 另請參閱

[XUser](/zh-TW/reference/system/xuser/xuser_members)

[XUserPlatformSpopPromptEventHandler](/zh-TW/reference/system/xuser/functions/xuserplatformspopprompteventhandler)

[XUserPlatformSpopPromptClearEventHandler](/zh-TW/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler)

[XUserPlatformSpopPromptComplete](/zh-TW/reference/system/xuser/functions/xuserplatformspoppromptcomplete)

[XUserPlatformSpopOperationResult](/zh-TW/reference/system/xuser/enums/xuserplatformspopoperationresult)


## Related topics

- [XUserPlatformSpopPromptSetEventHandlers](/es/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers.md)
- [XUserPlatformSpopPromptEventHandler](/reference/system/xuser/functions/xuserplatformspopprompteventhandler.md)
