Partager via


2.2.3.7 Printer Enumeration Flags

The Printer Enumeration Flags specify types of printers to enumerate. These flags can be combined to specify multiple printer types.

Name/value

Description

PRINTER_ENUM_LOCAL

0x00000002

Enumerate local printer objects.

PRINTER_ENUM_CONNECTIONS

0x00000004

Enumerate printer connections previously added through RpcAddPerMachineConnection.

PRINTER_ENUM_NAME

0x00000008

Enumerate printers on the print server, network domain, or a specific print provider.

PRINTER_ENUM_REMOTE

0x00000010

Enumerate network printers and other print servers that are in the same domain as the print server.

PRINTER_ENUM_SHARED

0x00000020

Only enumerate printers with the shared attribute set. This flag MUST be combined with one or more of the other flags.

PRINTER_ENUM_NETWORK

0x00000040

Enumerate network printers that are in the same domain as the print server.

PRINTER_ENUM_EXPAND

0x00004000

Indicates that the printer object contains further enumerable child objects. When a server enumerates print servers (section 3.1.4.2.1), the server can set this bit for each enumerated server whose name matches the server's domain name.

PRINTER_ENUM_CONTAINER

0x00008000

Indicates that the printer object is capable of containing enumerable objects. One such object is a print provider, which is a print server that contains printers.

PRINTER_ENUM_ICON1

0x00010000

Indicates that, where appropriate, an application treats the printer object as a top-level network name, such as Windows network. A GUI application can <155> choose to display an icon of choice for this type of object.

PRINTER_ENUM_ICON2

0x00020000

Indicates that, where appropriate, an application treats an object as a network domain name. A GUI application can<156> choose to display an icon of choice for this type of object.

PRINTER_ENUM_ICON3

0x00040000

Indicates that, where appropriate, an application treats an object as a print server. A GUI application can<157> choose to display an icon of choice for this type of object.

PRINTER_ENUM_ICON8

0x00800000

Indicates that, where appropriate, an application treats an object as a print server. A GUI application can<158> choose to display an icon of choice for this type of object.

PRINTER_ENUM_HIDE

0x01000000

Indicates that an application cannot display the printer object.<159>