> ## 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

Inscrit un gestionnaire d'événements pour les notifications de changement de statistique. Les gestionnaires d'événements reçoivent un objet XblStatisticChangeEventArgs.

## Syntaxe

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

### Paramètres

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

Contexte XBOX Live pour l'utilisateur local.

*handler*   \_In\_\
Type : XblStatisticChangedHandler

Fonction de rappel qui reçoit les notifications.

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

Pointeur de contexte client à retransmettre au gestionnaire.

### Valeur de retour

Type : XblFunctionContext

Objet XblFunctionContext qui peut être utilisé pour désinscrire le gestionnaire d'événements.

## Configuration requise

**En-tête :** user\_statistics\_c.h

**Bibliothèque :** Microsoft.Xbox.Services.14x.GDK.C.lib

## Voir aussi

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


## Related topics

- [XblUserStatisticsAddStatisticChangedHandler](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsaddstatisticchangedhandler.md)
- [XblStatisticChangedHandler](/reference/live/xsapi-c/user_statistics_c/functions/xblstatisticchangedhandler.md)
