Platform SDK: Active Directory, ADSI, and Directory Services

IADsPrintQueueOperations

The IADsPrintQueueOperations interface is designed to control a printer across a network. It supports the following operations:

  1. Retrieving all print jobs submitted to the print queue.
  2. Suspending the print queue operation.
  3. Resuming the print queue operation.
  4. Removing all print jobs from the print queue.

IADsPrintQueueOperations is a dual interface that inherits from IADs. The IADsPrintQueueOperations interface exposes the following methods.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.

IDispatch methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of the object's programmable interface.
GetIDsOfNames Maps the name of the method or property to DISPID.
Invoke Calls one of the object's methods, or gets and sets one of its properties.

IADsPrintQueueOperations property methods Description
get_Status States the current status of print queue service.
PrintJobs Retrieves an interface pointer on a collection object that represents print jobs managed by this print queue.
Pause Pauses print queue processing of print jobs.
Resume Resumes print queue processing of print jobs.
Purge Purges all jobs from a print queue.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
  Windows 95/98: Requires Windows 95 or later (with DSClient).
  Header: Declared in Iads.h.

See Also

IADs