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
HRESULT XblTitleManagedStatsWriteAsync(
XblContextHandle xblContextHandle,
uint64_t xboxUserId,
const XblTitleManagedStatistic* statistics,
size_t statisticsCount,
XAsyncBlock* async
)
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.141.GSDK.C.lib