IBackgroundCopyGroup::GetProgress method (qmgr.h)
[IBackgroundCopyGroup is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the BITS interfaces.]
Use the GetProgress method to retrieve the progress of the download.
Syntax
HRESULT GetProgress(
[in] DWORD dwFlags,
[out] DWORD *pdwProgress
);
Parameters
[in] dwFlags
Type of progress to retrieve. Specify one of the following flags.
Value | Meaning |
---|---|
|
Returns the percent of the download that is complete. |
|
Returns the number of bytes downloaded. |
|
Not supported. |
[out] pdwProgress
Progress of the download. The progress represents the number of bytes downloaded or the percent of the download that is complete, depending on dwFlags.
Return value
This method returns the following HRESULT values, as well as others.
Return code | Description |
---|---|
|
Successfully retrieved the group's progress. |
|
You cannot specify QM_PROGRESS_TIME_DONE for the dwFlags parameter. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP |
Minimum supported server | Windows Server 2003 |
Target Platform | Windows |
Header | qmgr.h |
DLL | QmgrPrxy.dll |