IEnumBackgroundCopyJobs::Next method

Retrieves a specified number of items in the enumeration sequence. If there are fewer than the requested number of elements left in the sequence, it retrieves the remaining elements.

Syntax

HRESULT Next(
  ULONG              celt,
  IBackgroundCopyJob **rgelt,
  ULONG              *pceltFetched
);

Parameters

celt

Number of elements requested.

rgelt

Array of IBackgroundCopyJob objects. You must release each object in rgelt when done.

pceltFetched

Number of elements returned in rgelt. You can set pceltFetched to NULL if celt is one. Otherwise, initialize the value of pceltFetched to 0 before calling this method.

Return Value

This method returns the following HRESULT values, as well as others.

Return code Description
S_OK
Successfully returned the number of requested elements.
S_FALSE
Returned less than the number of requested elements.

Requirements

   
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Target Platform Windows
Header bits.h
Library Bits.lib
DLL QmgrPrxy.dll

See Also

IEnumBackgroundCopyJobs