Skip to main content

XGameActivationAcceptPendingInvite

Accepts a pending game invite.

Syntax

Parameters

inviteUri   _In_z_
Type: const char*
The invite URI received from an XGameActivationCallback with an activation type of XGameActivationType::PendingGameInvite.

Return value

Type: HRESULT HRESULT success or error code.
For a list of error codes, see Error Codes.

Remarks

Call XGameActivationAcceptPendingInvite after the user has accepted a pending game invite. When a PendingGameInvite activation is received through the XGameActivationCallback, the game should present UI to allow the user to accept or reject the invite. If the user accepts, call this function with the inviteUri from the XGameActivationInfo structure. This triggers a subsequent activation callback with the AcceptedGameInvite type. For an example of handling pending invites, see the remarks section of the XGameActivationCallback topic.

Requirements

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

See also

XGameActivation XGameActivationCallback
Last modified on August 20, 2026