XGameProtocolActivationCallback

A callback an application defines for protcol activation events.

Syntax

typedef void CALLBACK XGameProtocolActivationCallback(
    _In_opt_ void* context,
    _In_ const char* protocolUri
    );

Parameters

context   _In_opt_
Type: void*

The context we pass to XGameProtocolRegisterForActivation.

protocolUri   _In_
Type: char*

The URI used to invoke the protocol activation. Games may parse this to determine parameters passed to the game.

Return value

Type: void

Remarks

To register a callback for a game invite event, call XGameProtocolRegisterForActivation. To un-register a callback for a protocol activation, call XGameProtocolUnregisterForEvent.

Requirements

Header: XGameProtocol.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameProtocol members