Freigeben über


XGameSaveGetRemainingQuotaResult

Retrieves the results of the XGameSaveGetRemainingQuotaAsync function.

Syntax

HRESULT XGameSaveGetRemainingQuotaResult(  
         XAsyncBlock* async,  
         int64_t* remainingQuota  
)  

Parameters

async   _In_
Type: XAsyncBlock*

XAsyncBlock* passed from the XGameSaveGetRemainingQuotaAsync function.

remainingQuota   _Out_
Type: int64_t*

Amount of data available to be used as storage.

Return value

Type: HRESULT

Function result.

May return E_GS_QUOTA_EXCEEDED in the event that there is no more room for the application to store data about a user, otherwise will return successfully.

Remarks

Call this function as a part of the callback function for XGameSaveGetRemainingQuotaAsync. The function allows you to retrieve the results for calling XGameSaveGetRemainingQuotaAsync, which will include the function result which will help you determine any errors as well as the value of the remaining quota called for. Result methods are commonly written in line with the asynchronous call which will call them later, but can also be written as separate functions.

Requirements

Header: XGameSave.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameSave
XGameSaveGetRemainingQuotaAsync
Game save errors