IBackgroundCopyManager::EnumJobs method (bits.h)
Retrieves an interface pointer to an enumerator object that you use to enumerate the jobs in the transfer queue. The order of the jobs in the enumerator is arbitrary.
HRESULT EnumJobs( DWORD dwFlags, IEnumBackgroundCopyJobs **ppEnum );
Specifies whose jobs to include in the enumeration. If dwFlags is set to 0, the user receives all jobs that they own in the transfer queue. The following table lists the enumeration options.
||Includes all jobs in the transfer queue—those owned by the user and those owned by others. The user must be an administrator to use this flag.|
An IEnumBackgroundCopyJobs interface pointer that you use to enumerate the jobs in the transfer queue. The contents of the enumerator depend on the value of dwFlags. Release ppEnumJobs when done.
This method returns the following HRESULT values, as well as others.
||Successfully generated enumerator object.|
||The user must be an administrator or belong to an administrator group to enumerate jobs owned by another user.|
|Minimum supported client||Windows XP|
|Minimum supported server||Windows Server 2003|