> ## 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 um manipulador de eventos para notificações de alteração de estatística. Os manipuladores de eventos recebem um objeto XblStatisticChangeEventArgs.

## Sintaxe

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

### Parâmetros

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

Contexto do XBOX live para o usuário local.

*handler*   \_In\_\
Tipo: XblStatisticChangedHandler

A função de retorno de chamada que recebe as notificações.

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

Ponteiro de contexto do cliente a ser retornado ao manipulador.

### Valor retornado

Tipo: XblFunctionContext

Um objeto XblFunctionContext que pode ser usado para cancelar o registro do manipulador de eventos.

## Requisitos

**Cabeçalho:** user\_statistics\_c.h

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

## Confira também

[user\_statistics\_c](/pt-BR/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)
