XblUserStatisticsTrackStatistics

配置将实时跟踪的统计信息组。 此呼叫对已经跟踪的统计信息无效。

语法

HRESULT XblUserStatisticsTrackStatistics(  
         XblContextHandle xblContextHandle,  
         const uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         const char* serviceConfigurationId,  
         const char** statisticNames,  
         size_t statisticNamesCount  
)  

参数

xblContextHandle _In_
类型:XblContextHandle

本地用户的 Xbox Live 上下文。

xboxUserIds _In_
类型:uint64_t*

需要跟踪所提供统计信息的 XboxUserIDs 数组。

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