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

# 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\*](/services/playfab/api-references/c/pfgamesavefilestypes/enums/pfgamesavefilessyncstate)<br />*optional output*

Sync state of the operation.

**`current`**   uint64\_t\*<br />*optional output*

Current bytes processed in the active state.

**`total`**   uint64\_t\*<br />*optional output*

Total bytes expected in the active state.

### Return value

Type: HRESULT

TBD

## Requirements

**Header:** PFGameSaveFilesUi.h

## See also

[PFGameSaveFilesUi members](/services/playfab/api-references/c/pfgamesavefilesui/pfgamesavefilesui_members)
