VB 5.0 Project-Reference Descriptive String
of Type Library
Bindview DirectScript Objects 3.2 Type Library
A Print Queue is equivalent to a Printer attached to a computer. The Print Queue object is used to perform operations on the printer. You may also use this object for specifying settings like the printer driver used by the print queue, location of the print queue, priority of the print queue, and so on. The Print Queue object also provides methods like Pause, Resume, Purge etc. for managing the print queue.
The Print Queue object may be used for enumerating all print jobs in the print queue. You may enumerate print queues in a domain or computer, though the enumeration over a domain is only applicable to shared print queues. The enumeration over a computer works for all print queues on a computer.
The object supports these interfaces:
IADsPrintQueue: the default interface for this object. Can be used to get and set the properties of the Print Queue object.
IADs: Can be used to get some basic properties (like name, class, and parent) of an object.
IADsPrintQueueOperations: Can be used to pause a print queue, purge jobs from the queue, and so on.
IPrintQueueInfo: Can be used to get the name of a printer, its shared name and check whether the printer is shared or not.
Dim PrintQueue As IADsPrintQueue
'Gets the interface. In the path HP DeskJet 500C is the print queue.
Set PrintQueue = GetObject ("NTDS://MSFT/MOON/HP DeskJet 500C")