Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This API is now deprecated. Use XGameActivationCallback instead.
A callback an application defines for protocol 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 unregister 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