Skip to main content
Registers an event handler for statistic change notifications. Event handlers receive a XblStatisticChangeEventArgs object.

Syntax

Parameters

xblContextHandle   _In_
Type: XblContextHandle
XBOX services context for the local user. handler   _In_
Type: XblStatisticChangedHandler
The callback function that receives notifications. handlerContext   _In_opt_
Type: void*
Client context pointer to be passed back to the handler.

Return value

Type: XblFunctionContext A XblFunctionContext object that can be used to unregister the event handler.

Remarks

The handler receives updates only for statistics that you track by calling XblUserStatisticsTrackStatistics. You can change the set of tracked statistics independently of your handlers. To stop receiving updates, call XblUserStatisticsStopTrackingStatistics or XblUserStatisticsRemoveStatisticChangedHandler.

Requirements

Header: user_statistics_c.h Library: Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

user_statistics_c
XblStatisticChangedHandler
XblUserStatisticsRemoveStatisticChangedHandler
XblUserStatisticsTrackStatistics
Programming the RTA service
Handle an event-based stat change
Last modified on October 29, 2026