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

# PFGameSaveFilesGetRemainingQuota

> Returns the amount of data available to store save data in bytes using the PFGameSaveFiles API. Going over quota will return a negative number and cause the service to block the upload.

Returns the amount of data available to store save data in bytes using the PFGameSaveFiles API. Going over quota will return a negative number and cause the service to block the upload.

## Syntax

```cpp theme={null}
HRESULT PFGameSaveFilesGetRemainingQuota(  
    PFLocalUserHandle localUserHandle,  
    int64_t* remainingQuota  
)  
```

### Parameters

**`localUserHandle`**   PFLocalUserHandle

Local user whose quota to return.

**`remainingQuota`**   int64\_t\*<br />*output*

The amount of data available to store save data in bytes. Going over quota will return a negative number and cause the service to block the upload

### Return value

Type: HRESULT

Result code for this API operation. If called when disconnected from cloud, it will return E\_PF\_GAMESAVE\_DISCONNECTED\_FROM\_CLOUD.

## Requirements

**Header:** PFGameSaveFiles.h

## See also

[PFGameSaveFiles members](/services/playfab/api-references/c/pfgamesavefiles/pfgamesavefiles_members)
