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

# XblUserStatisticsTrackStatistics

> XblUserStatisticsTrackStatistics

# XblUserStatisticsTrackStatistics

リアルタイムで追跡される統計のセットを構成します。この呼び出しは、既に追跡されている統計には影響しません。

## 構文

```cpp theme={null}
HRESULT XblUserStatisticsTrackStatistics(  
         XblContextHandle xblContextHandle,  
         const uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         const char* serviceConfigurationId,  
         const char** statisticNames,  
         size_t statisticNamesCount  
)  
```

### パラメーター

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

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

*xboxUserIds*   \_In\_\
型: uint64\_t\*

指定された統計の追跡対象となる XboxUserID の配列。

*xboxUserIdsCount*   \_In\_\
型: size\_t

xboxUserIds 配列の長さ。

*serviceConfigurationId*   \_In\_z\_\
型: char\*

タイトルのサービス構成 ID (SCID)。SCID は大文字と小文字が区別されるため、パートナー センターから直接貼り付けてください。

*statisticNames*   \_In\_\
型: char\*\*

リアルタイム更新を受け取る対象の統計名の配列。

*statisticNamesCount*   \_In\_\
型: size\_t

statisticNames 配列の長さ。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

更新は XblStatisticChangedHandlers を介して配信されます。追跡される統計のセットは、ハンドラーとは独立して更新できることに注意してください。

## 要件

**ヘッダー:** 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

- [XblUserStatisticsStopTrackingStatistics](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsstoptrackingstatistics.md)
- [XblUserStatisticsStopTrackingUsers](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsstoptrackingusers.md)
- [XblUserStatisticsResult](/ja-jp/reference/live/xsapi-c/user_statistics_c/structs/xbluserstatisticsresult.md)
- [XblUserStatisticsGetMultipleUserStatisticsAsync](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsasync.md)
- [XblUserStatisticsGetMultipleUserStatisticsResult](/ja-jp/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresult.md)
