Skip to main content

XblMultiplayerAddSessionChangedHandler

Registers an event handler for notifications when a multiplayer session changes. If the RTA subscription has not been explicitly enabled with XblMultiplayerSetSubscriptionsEnabled, adding session changed handlers will enable it automatically. Use the returned XblFunctionContext to unregister the handler.

Syntax

Parameters

xblContext   _In_
Type: XblContextHandle
XBOX live context for the local user. handler   _In_
Type: XblMultiplayerSessionChangedHandler*
The callback function that receives notifications. context   _In_opt_
Type: void*
Caller context to be passed the handler.

Return value

Type: XblFunctionContext The function context token that was registered for the event.

Requirements

Header: multiplayer_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

multiplayer_c
Last modified on August 20, 2026