Skip to main content

XblTitleManagedStatsWriteAsync

完全更新调用用户的统计信息。此调用将清除所有现有统计信息(所提供数组中未引用的任何统计信息都将被移除)。

语法

参数

xblContextHandle   _In_
类型:XblContextHandle
本地用户的 XBOX live 上下文。 xboxUserId   _In_
类型:uint64_t
其统计信息正在被更新的用户(只能是本地用户)。 statistics   _In_
类型:XblTitleManagedStatistic*
要提交的 XblTitleManagedStatistic 列表。 statisticsCount   _In_
类型:size_t
statistics 数组中的项数。 async   _In_
类型:XAsyncBlock*
用于异步调用。

返回值

类型:HRESULT 此 API 操作的 HRESULT 返回代码。

备注

若要获取结果,请在 AsyncBlock 回调中或 AsyncBlock 完成后调用 XAsyncGetStatus。如果调用因任何原因失败,则由游戏负责重新提交请求。

要求

标头: title_managed_statistics_c.h 库: Microsoft.Xbox.Services.14x.GDK.C.lib

另请参阅

title_managed_statistics_c
最后修改于 2026年8月24日