跳轉到主要內容

XblUserStatisticsTrackStatistics

設定要即時追蹤的統計資料集合。此呼叫不會影響已在追蹤中的統計資料。

語法

參數

xblContextHandle   _In_
類型:XblContextHandle
本機使用者的 XBOX Live 內容。 xboxUserIds   _In_
類型:uint64_t*
要追蹤所提供統計資料的 XboxUserID 陣列。 xboxUserIdsCount   _In_
類型:size_t
xboxUserIds 陣列的長度。 serviceConfigurationId   _In_z_
類型:char*
遊戲的服務設定識別碼 (SCID)。SCID 區分大小寫,因此請直接從 Partner Center 貼上。 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
最後修改於 2026年10月6日