ITransferAdviseSink::UpdateProgress method (shobjidl_core.h)

Updates the transfer progress status in the UI.

Syntax

HRESULT UpdateProgress(
  [in] ULONGLONG ullSizeCurrent,
  [in] ULONGLONG ullSizeTotal,
  [in] int       nFilesCurrent,
  [in] int       nFilesTotal,
  [in] int       nFoldersCurrent,
  [in] int       nFoldersTotal
);

Parameters

[in] ullSizeCurrent

Type: ULONGLONG

The number of bytes processed in the current operation.

[in] ullSizeTotal

Type: ULONGLONG

The total number of bytes in the current operation.

[in] nFilesCurrent

Type: int

The number of files processed in the current operation.

[in] nFilesTotal

Type: int

The total number of files in the operation. Set to 0 to indicate that the value has not changed since the last call to this method.

[in] nFoldersCurrent

Type: int

The number of folders processed in the current operation.

[in] nFoldersTotal

Type: int

The total number of folders in the operation. Set to 0 to indicate that the value has not changed since the last call to this method.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Set ullSizeTotal, nFilesTotal, and nFoldersTotal all to 0 to indicate that the totals have not changed since the last call to this method.

Set all six parameters to 0 to indicate that progress has not changed since the last call to this method.

Note to Implementers

Implementers of this function should return an error code when the operation needs to terminate before it is complete, such as when the user clicks the Cancel button.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)