PRINTER_INFO_5 Structure

Type PRINTER_INFO_5
  pPrinterName As String
  pPortName As String
  Attributes As Long
  DeviceNotSelectedTimeout As Long
  TransmissionRetryTimeout As Long
End Type

PRINTER_INFO_5-type variables hold information about a printer. This structure only identifies a few of the possible pieces of information associated with a printer.

pPrinterName
The name of the printer.
pPortName
A comma-separated list of the ports the printer is connected to, such as LPT1:.
Attributes
Zero or more of the following flags identifying various attributes of the printer:
PRINTER_ATTRIBUTE_DEFAULT = &H4
The printer is the default printer.
PRINTER_ATTRIBUTE_DIRECT = &H2
The printer is physically connected to the computer (i.e., it is not a network printer).
PRINTER_ATTRIBUTE_QUEUED = &H1
The printer supports queueing (?).
PRINTER_ATTRIBUTE_SHARED = &H8
The printer is a network printer.
PRINTER_ATTRIBUTE_WORK_OFFLINE = &H400
The printer can work if the computer is not connected to the network (?).
DeviceNotSelectedTimeout
The maximum time, in milliseconds, between attempts to select the printer.
TransmissionRetryTimeout
The maximum time, in milliseconds, between document transmission retries.

Used by: EnumPrinters
Back to the index.


Go to Paul Kuliniewicz's Home Page.
E-mail: rogue953@hotmail.com
This page is at http://skyscraper.fortunecity.com/transmission/45/api/p/printer_info_5.html