IADsPrintQueueOperations::PrintJobs

Gets an IADsCollection interface pointer on the collection object that represents the print jobs being processed by this print queue object. This collection can be enumerated using the standard Automation enumeration methods on IEnumVARIANT. To delete a print job, use IADsCollection::Remove method on the retrieved interface pointer.

HRESULT IADsPrintQueueOperations::PrintJobs(
  IADsCollection ** ppPrintJobs  //Interface pointer on collection 
                                 // of print jobs
);
 

Parameter

ppPrintJobs
[out] Indirect pointer to the IADsCollection interface on the collection object that includes all the ADSI PrintJob Objects that have been added to this print queue.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The IADsCollection interface pointer was successfully retrieved.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

ADsEnumerateNext, ADSI PrintJob Object, ADSI PrintQueue Object