PRINTER_INFO_5

[Now Supported on Windows NT]

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
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.

See Also

EnumPrinters, GetPrinter, SetPrinter, PRINTER_INFO_1, PRINTER_INFO_2, PRINTER_INFO_3, PRINTER_INFO_4