PRINTER_INFO_5

The PRINTER_INFO_5 structure specifies detailed printer information.

typedef struct _PRINTER_INFO_5 { // pri5 
    LPTSTR    pPrinterName; 
    LPTSTR    pPortName; 
    DWORD     Attributes; 
    DWORD     DeviceNotSelectedTimeout; 
    DWORD     TransmissionRetryTimeout; 
} PRINTER_INFO_5; 
 

Members

pPrinterName
Pointer to a null-terminated string that specifies the name of the printer.
pPortName
Pointer to a null-terminated string that identifies the port(s) used to transmit data to the printer. If a printer is connected to more than one port, the names of each port must be separated by commas (for example, "LPT1:,LPT2:,LPT3:").
Attributes
Specifies the printer attributes. This member can be one of the following values:

PRINTER_ATTRIBUTE_QUEUED
PRINTER_ATTRIBUTE_DIRECT
PRINTER_ATTRIBUTE_DEFAULT (Windows 95 only)
PRINTER_ATTRIBUTE_SHARED
PRINTER_ATTRIBUTE_WORK_OFFLINE

DeviceNotSelectedTimeout
Windows 95: Specifies the maximum time, in milliseconds, allowed to elapse between attempts to select a device.

Windows NT: This value is not used.

TransmissionRetryTimeout
Windows 95: Specifies the maximum time, in milliseconds, allowed to elapse between transmission retries.

Windows NT: This value is not used.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winspool.h.
  Unicode: Defined as Unicode and ANSI structures.

See Also

Printing and Print Spooler Overview, Printing and Print Spooler Structures, EnumPrinters, GetPrinter, SetPrinter, PRINTER_INFO_1, PRINTER_INFO_2, PRINTER_INFO_3, PRINTER_INFO_4