Skip to main content

XGameInviteEventCallback (deprecated)

This API is now deprecated. Use XGameActivationCallback instead.
A callback an application defines for a game invite event.

Syntax

Parameters

context   _In_opt_
Type: void*
The context we pass to XGameInviteRegisterForEvent. inviteUri   _In_
Type: char*
The URI for joining the game session.
XSAPI knows how to consume the URI.

Return value

Type: void

Remarks

To register a callback for a game invite event, call XGameInviteRegisterForEvent. The function uses a pointer to an XGameInviteEventCallback as an argument. To unregister a callback for a game invite event, call XGameInviteUnregisterForEvent. The following code sample registers for a game invite callback.

Requirements

Header: XGameInvite.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XGameInvite XGameInviteRegisterForEvent XGameInviteUnregisterForEvent
Last modified on August 20, 2026