> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblUserStatisticsAddStatisticChangedHandler

> XblUserStatisticsAddStatisticChangedHandler

# XblUserStatisticsAddStatisticChangedHandler

Registra un controlador de eventos para las notificaciones de cambio de estadísticas. Los controladores de eventos reciben un objeto XblStatisticChangeEventArgs.

## Sintaxis

```cpp theme={null}
XblFunctionContext XblUserStatisticsAddStatisticChangedHandler(  
         XblContextHandle xblContextHandle,  
         XblStatisticChangedHandler handler,  
         void* handlerContext  
)  
```

### Parámetros

*xblContextHandle*   \_In\_\
Tipo: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

Contexto de XBOX live del usuario local.

*handler*   \_In\_\
Tipo: XblStatisticChangedHandler

La función de devolución de llamada que recibe las notificaciones.

*handlerContext*   \_In\_opt\_\
Tipo: void\*

Puntero de contexto de cliente que se devolverá al controlador.

### Valor devuelto

Tipo: XblFunctionContext

Un objeto XblFunctionContext que se puede usar para anular el registro del controlador de eventos.

## Requisitos

**Encabezado:** user\_statistics\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Consulte también

[user\_statistics\_c](/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members)


## Related topics

- [XblStatisticChangedHandler](/es/reference/live/xsapi-c/user_statistics_c/functions/xblstatisticchangedhandler.md)
- [Programación del servicio RTA](/es/services/xbox-services/fundamentals/rta/how-to/live-programming-rta.md)
- [Control de un cambio de estadística basada en eventos](/es/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-handling-eb-stat-change.md)
- [XblUserStatisticsRemoveStatisticChangedHandler](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsremovestatisticchangedhandler.md)
- [XblUserStatisticsTrackStatistics](/es/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticstrackstatistics.md)
