> ## 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.

# XGameSaveFilesGetRemainingQuota

> XGameSaveFilesGetRemainingQuota

# XGameSaveFilesGetRemainingQuota

Returns the amount of data available to store save data using the XGameSaveFiles API.

## Syntax

```cpp theme={null}
HRESULT XGameSaveFilesGetRemainingQuota(
  XUserHandle userContext,
  const char * configurationId,
  int64_t * remainingQuota
)
```

### Parameters

`userContext`\
Type: *In* XUserHandle

Handle to an XBOX Live User.

`configurationId`\
Type: *In\_z* const char \*

Service configuration ID (SCID).

`remainingQuota`\
Type: *Out* int64\_t \*

Amount of data available to be used as game save storage.

### Return value

Type: HRESULT

Function result.

## Requirements

**Header:** XGameSaveFiles.h

## Conceptual documentation

* [Game Saves storage systems](/build/core-features/common/game-save/game-saves-storage-systems)
* [XGameSaveFiles API overview](/build/core-features/common/game-save/xgamesavefiles)
* [Implement cloud saves in your game](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-cloud-saves)

## See also

[XGameSaveFiles members](/reference/system/xgamesavefiles/xgamesavefiles_members)\
[XGameSaveFiles Overview](/build/core-features/common/game-save/xgamesavefiles)


## Related topics

- [XGameSaveFiles API overview](/build/core-features/common/game-save/xgamesavefiles.md)
- [XGameSaveFiles](/reference/system/xgamesavefiles/xgamesavefiles_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameSaveGetRemainingQuota](/reference/system/xgamesave/functions/xgamesavegetremainingquota.md)
- [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
