> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameSaveGetRemainingQuotaResult

> XGameSaveGetRemainingQuotaResult

# XGameSaveGetRemainingQuotaResult

Retrieves the results of the [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync) function.

## Syntax

```cpp theme={null}
HRESULT XGameSaveGetRemainingQuotaResult(  
         XAsyncBlock* async,  
         int64_t* remainingQuota  
)  
```

### Parameters

*async*   \_In\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock) passed from the [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/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](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync). The function allows you to retrieve the results for calling [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/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

## Conceptual documentation

* [Asynchronous Programming Model](/build/core-features/common/async/async-programming-model)

## See also

[XGameSave](/reference/system/xgamesave/xgamesave_members)\
[XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync)\
[Debugging Game Saves](/build/core-features/common/game-save/game-saves-debugging)


## Related topics

- [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
- [Asynchronous Programming Model](/build/core-features/common/async/async-programming-model.md)
- [XAsyncGetResultSize](/reference/system/xasync/functions/xasyncgetresultsize.md)
- [XGameSave](/reference/system/xgamesave/xgamesave_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
