次の方法で共有


2.2.2.9.6 _PRINTER_INFO_5

The _PRINTER_INFO_5 structure specifies printer information.<128> It is a custom-marshaled form of the _PRINTER_INFO_5 (section 2.2.1.10.6) structure.


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

PrinterNameOffset

PortNameOffset

Attributes

DeviceNotSelectedTimeout

TransmissionRetryTimeout

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

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

Attributes (4 bytes): Specifies printer attributes. It is the result of a bitwise OR of zero or more printer attribute values (section 2.2.3.12).

DeviceNotSelectedTimeout (4 bytes): The maximum number of milliseconds between select attempts. The value controls communication between the print server and a print device. It does not have any effect on communication between the print client and the print server.

TransmissionRetryTimeout (4 bytes): The maximum number of milliseconds between retransmission attempts. The value controls communication between the print server and a print device. It does not have any effect on communication between the print client and the print server.

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

PortNameArray (variable)

...

PrinterNameArray (variable)

...

PortNameArray (variable): A string that specifies the name of the port. The location of this buffer is determined by the value of the PortNameOffset member.

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