IADsPrintQueueOperations::PrintJobs method (iads.h)

The IADsPrintQueueOperations::PrintJobs method gets an IADsCollection interface pointer on the collection of the print jobs processed in this print queue. This collection can be enumerated using the standard Automation enumeration methods on IEnumVARIANT. To delete a print job, use the IADsCollection::Remove method on the retrieved interface pointer.

Syntax

HRESULT PrintJobs(
  [out] IADsCollection **pObject
);

Parameters

[out] pObject

Pointer to a pointer to the IADsCollection interface on the collection of objects added to this print queue. Objects in the collection implement the IADsPrintJob interface.

Return value

This method supports the standard return values. For more information about other return values, see the ADSI Error Codes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

ADsEnumerateNext

IADsCollection

IADsCollection::Remove

IADsPrintJob

IADsPrintJob Property Methods

IADsPrintQueueOperations

IEnumVARIANT