Структура PRINTER_INFO_1

Type PRINTER_INFO_1
  flags As Long
  pDescription As String
  pName As String
  pComment As String
End Type

Структура PRINTER_INFO_1 хранит информацию о принтере

Состав структуры

flags
Комбинация флагов:
PRINTER_ENUM_CONTAINER = &H8000
The object the structure describes is a container, such as a print server controlling multiple printers.
PRINTER_ENUM_EXPAND = &H4000
The program should further enumerate the printer if default expansion on it is enabled.
PRINTER_ENUM_ICON1 = &H10000
To represent the printer, the program should use an icon representing a top-level network name.
PRINTER_ENUM_ICON2 = &H20000
To represent the printer, the program should use an icon representing a network domain.
PRINTER_ENUM_ICON3 = &H40000
To represent the printer, the program should use an icon representing a print server.
PRINTER_ENUM_ICON8 = &H800000
To represent the printer, the program should use an icon representing a printer.
pDescription
Описание принтера
pName
Имя принтера
pComment
Комментарий или короткое описание принтера

Используется в:

EnumPrinters