Skip to main content
Sets the SPOP prompt event handler.

Syntax

Parameters

queue   _In_opt_
Type: XTaskQueueHandle
The task queue on which XUser invokes the handler. handler   _In_
Type: XUserPlatformSpopPromptEventHandler
The event handler to set for SPOP prompts. See XUserPlatformSpopPromptEventHandler context   _In_opt_
Type: void*
Optional pointer that XUser passes to the handler in its context parameter.

Return value

Type: HRESULT Result code for this API operation.

Remarks

Call this function before you call XUserAddAsync so that XUser can show the SPOP prompt through your handler. Calling this function again replaces the previously registered handler. If XUser needs to show an SPOP prompt and no handler is registered, XUser completes the prompt internally with a failure result instead of asking the player to choose.

Requirements

Header: XUser.h Library: xgameruntime.lib Supported platforms: Supported on Steam Deck

See also

XUser XUserPlatformSpopPromptEventHandler XUserPlatformSpopPromptComplete XUserPlatformSpopOperationResult
Last modified on October 29, 2026