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

# XUserPlatformSpopPromptEventHandler

> XUserPlatformSpopPromptEventHandler

# XUserPlatformSpopPromptEventHandler

Show prompt for SPOP operation event handler

## Syntax

```cpp theme={null}
typedef void (XUserPlatformSpopPromptEventHandler)(
    _In_opt_ void* context,
    _In_ uint32_t userIdentifier,
    _In_ XUserPlatformOperation operation,
    _In_z_ char const* modernGamertag,
    _In_opt_z_ char const* modernGamertagSuffix
);
```

## Parameters

*context*   \_In\_opt\_\
Type: void\*

Optional pointer to data used by the event handler.

*userIdentifier*   \_In\_\
Type: uint32\_t

The user identifier that was passed to XUser when the user was added.

*operation*   \_In\_\
Type: XUserPlatformOperation

The handle for this operation.

*modernGamertag*   \_In\_z\_\
Type: char const\*

The modern gamertag of the user.

*modernGamertagSuffix*   \_In\_opt\_z\_\
Type: char const\*

The modern gamertag suffix, if present. May be null for certain users.

### Return value

### Remarks

This event is raised when the user is already signed in on a different device and therefore hits an SPOP veto. XUser needs to prompt the user to decide whether they want to sign-out the other session and sign-in on the current device. This will only occur as a response to a call to XUserAddUserWithUiAsync that resulted in an SPOP veto.

The modern gamertag suffix might be null for certain users.

All arguments are owned by the caller (except context).

## Requirements

**Header:** XUser.h

**Library:** xgameruntime.lib

**Supported platforms:** Supported on Steam Deck

## See also

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

[XUserPlatformSpopPromptSetEventHandlers](/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers)

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

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

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


## Related topics

- [XUserPlatformSpopPromptSetEventHandlers](/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers.md)
- [XUserPlatformSpopPromptClearEventHandler](/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler.md)
- [XUserPlatformSpopPromptComplete](/reference/system/xuser/functions/xuserplatformspoppromptcomplete.md)
- [XUserPlatformSpopOperationResult](/reference/system/xuser/enums/xuserplatformspopoperationresult.md)
- [XUser](/reference/system/xuser/xuser_members.md)
