ISyncCallback::OnProgress

Occurs periodically during the synchronization session to report progress.

Syntax

HRESULT OnProgress(
  SYNC_PROVIDER_ROLE provider,
  SYNC_PROGRESS_STAGE syncStage,
  DWORD dwCompletedWork,
  DWORD dwTotalWork);

Parameters

  • provider
    [in] The role of the provider that is associated with this event.

  • syncStage
    [in] The current stage of the synchronization session.

  • dwCompletedWork
    [in] The amount of work that is currently completed in the session. This value is interpreted as being a part of dwTotalWork.

  • dwTotalWork
    [in] The total work for the session.

Return Value

  • S_OK

  • Application-determined error codes

Remarks

Exactly when OnProgress is sent and with what values depends on the providers. For more information, see Reporting Synchronization Progress.

See Also

Reference

ISyncCallback Interface