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

# PFGameSaveFilesUiProgressGetProgress

> Gets the current progress of the sync operation. Call this from within PFGameSaveFilesUiProgressCallback or poll it periodically while a sync is in progress to get up-to-date byte-level progress. During PreparingForUpload, current/total reflect uncompressed bytes processed/expected. During Uploading, current/total reflect uncompressed bytes transferred/expected. During Downloading, current/total reflect bytes downloaded/expected. If total is 0, the total size is not yet known -- titles should treat this as indeterminate progress (e.g., show a spinner) rather than dividing by zero or displaying 0%.

Gets the current progress of the sync operation. Call this from within PFGameSaveFilesUiProgressCallback or poll it periodically while a sync is in progress to get up-to-date byte-level progress. During PreparingForUpload, current/total reflect uncompressed bytes processed/expected. During Uploading, current/total reflect uncompressed bytes transferred/expected. During Downloading, current/total reflect bytes downloaded/expected. If total is 0, the total size is not yet known -- titles should treat this as indeterminate progress (e.g., show a spinner) rather than dividing by zero or displaying 0%.

## Syntax

```cpp theme={null}
HRESULT PFGameSaveFilesUiProgressGetProgress(  
    PFLocalUserHandle localUserHandle,  
    PFGameSaveFilesSyncState* syncState,  
    uint64_t* current,  
    uint64_t* total  
)  
```

### Parameters

**`localUserHandle`**   PFLocalUserHandle

Local user handle.

**`syncState`**   [PFGameSaveFilesSyncState\*](https://docs.xbox.com/services/playfab/api-references/c/pfgamesavefilestypes/enums/pfgamesavefilessyncstate.md)\
*optional output*

Sync state of the operation.

**`current`**   uint64\_t\*\
*optional output*

Current bytes processed in the active state.

**`total`**   uint64\_t\*\
*optional output*

Total bytes expected in the active state.

### Return value

Type: HRESULT

TBD

## Requirements

**Header:** PFGameSaveFilesUi.h

## See also

[PFGameSaveFilesUi members](https://docs.xbox.com/services/playfab/api-references/c/pfgamesavefilesui/pfgamesavefilesui_members.md)


## Related topics

- [PFGameSaveFilesUiProgressCallback](https://docs.xbox.com/services/playfab/api-references/c/pfgamesavefilesui/functions/pfgamesavefilesuiprogresscallback.md)
- [Game Saves UI callbacks](https://docs.xbox.com/services/playfab/player-progression/game-saves/ui-callbacks.md)
- [Services C API overview - PFGameSaveFilesUi.h](https://docs.xbox.com/services/playfab/api-references/c/pfgamesavefilesui/pfgamesavefilesui_members.md)
- [PlayFab Services C/C++ SDK Release Notes](https://docs.xbox.com/services/playfab/release-notes/playfab-c/index.md)
- [PFGameSaveFilesUiProgressUserAction](https://docs.xbox.com/services/playfab/api-references/c/pfgamesavefilesui/enums/pfgamesavefilesuiprogressuseraction.md)
