Skip to main content

XblTitleManagedStatsWriteAsync

Completely update the calling user’s stats. This call wipes out all existing stats (any stats not referenced in the provided array will be removed).

Syntax

Parameters

xblContextHandle   _In_
Type: XblContextHandle
XBOX live context for the local user. xboxUserId   _In_
Type: uint64_t
User whose stats are being updated (can only be the local user). statistics   _In_
Type: XblTitleManagedStatistic*
A list of XblTitleManagedStatistic to submit. statisticsCount   _In_
Type: size_t
Number of items in the statistics array. async   _In_
Type: XAsyncBlock*
Used for async call.

Return value

Type: HRESULT HRESULT return code for this API operation.

Remarks

To get the result, call XAsyncGetStatus inside the AsyncBlock callback or after the AsyncBlock is complete. If the call fails for any reason, it is the responsibility of the game to re-submit the request.

Requirements

Header: title_managed_statistics_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

title_managed_statistics_c
Last modified on August 20, 2026