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
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
Windows NT: Use version 4.0 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.
ADsEnumerateNext, ADSI PrintJob Object, ADSI PrintQueue Object