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

統計変更通知のイベント ハンドラーを登録します。イベント ハンドラーは XblStatisticChangeEventArgs オブジェクトを受け取ります。

## 構文

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

### パラメーター

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

ローカル ユーザーの XBOX Live コンテキスト。

*handler*   \_In\_\
型: XblStatisticChangedHandler

通知を受け取るコールバック関数。

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

ハンドラーに戻されるクライアント コンテキスト ポインター。

### 戻り値

型: XblFunctionContext

イベント ハンドラーの登録解除に使用できる XblFunctionContext オブジェクト。

## 要件

**ヘッダー:** user\_statistics\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XblStatisticChangedHandler](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xblstatisticchangedhandler.md)
- [RTA サービスのプログラミング](/ja-jp/services/xbox-services/fundamentals/rta/how-to/live-programming-rta.md)
- [イベントベース統計変更の処理](/ja-jp/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-handling-eb-stat-change.md)
- [XblUserStatisticsRemoveStatisticChangedHandler](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsremovestatisticchangedhandler.md)
- [XblUserStatisticsTrackStatistics](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticstrackstatistics.md)
