2.2.2.9.2 _PRINTER_INFO_1

The _PRINTER_INFO_1 structure specifies printer information. It is a custom-marshaled form of the _PRINTER_INFO_1 (section 2.2.1.10.2) structure. See _PRINTER_INFO_1 for the definition of Flags.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Fixed_Portion (variable)

...

Variable_Data (variable)

...

Fixed_Portion (variable): An array of one or more groups of fixed-size fields, which are defined as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Flags

DescriptionOffset

NameOffset

CommentOffset

Flags (4 bytes): The value of this member MUST be the result of a bitwise OR of zero or more of the Printer Enumeration Flags (section 2.2.3.7).

If the _PRINTER_INFO_1 structure is used in a PRINTER_CONTAINER (section 2.2.1.2.9) as input to RpcAddPrinter (section 3.1.4.2.3) or RpcAddPrinterEx (section 3.1.4.2.15), Flags MUST be a bitwise OR of zero or more of the PRINTER_ATTRIBUTE values defined in Status and Attribute Values (section 2.2.3.12).

DescriptionOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the DescriptionArray member.

NameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the NameArray member.

CommentOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the CommentArray member.

Variable_Data (variable): An array of zero or more groups of optional, variable-size fields, which are defined as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

CommentArray (variable)

...

NameArray (variable)

...

DescriptionArray (variable)

...

CommentArray (variable): A string that specifies a comment associated with the printer. The location of this buffer is determined by the value of the CommentOffset member.

NameArray (variable): A string that specifies the name of the printer. The location of this buffer is determined by the value of the NameOffset member.

DescriptionArray (variable): A string that specifies the printer name, driver name, and location of the printer. The location of this buffer is determined by the value of the DescriptionOffset member.