次の方法で共有


2.2.2.14.3 PORT_DATA_1

The PORT_DATA_1 structure specifies level 1 port configuration data.


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

PortName (128 bytes)

...

...

...

Version

Protocol

Size

Reserved

HostAddress (98 bytes)

...

...

...

SNMPCommunity (66 bytes)

...

...

DoubleSpool

Queue (66 bytes)

...

...

...

IPAddress (32 bytes)

...

...

...

HardwareAddress (26 bytes)

...

...

DeviceType (514 bytes)

...

...

...

PaddingForAlignment

PortNumber

SNMPEnabled

SNMPDevIndex

PortName (128 bytes): A null-terminated Unicode string, which is the name of the port.

Version (4 bytes): A 32-bit unsigned integer that specifies the version number of the PORT_DATA_1 structure. This value MUST be 0x00000001.

Protocol (4 bytes): A 32-bit unsigned integer that specifies the protocol to use for the port. This value MUST be either PROTOCOL_RAWTCP_TYPE (0x00000001), indicating that the port expects RAW print data, or PROTOCOL_LPR_TYPE (0x00000002), indicating that the port expects to be driven as an LPR port.

Size (4 bytes): A 32-bit unsigned integer that specifies the size, in bytes, of the PORT_DATA_1 structure.

Reserved (4 bytes): A 32-bit unsigned integer that is set to zero.

HostAddress (98 bytes): A null-terminated Unicode string, which is the IP address or host name of the printer.

SNMPCommunity (66 bytes): A null-terminated Unicode string, which is the Simple Network Management Protocol (SNMP) [RFC1157] community name of the printer.

DoubleSpool (4 bytes): A 32-bit unsigned integer that, if nonzero, indicates that double spooling is enabled or, if zero, indicates that double spooling is disabled.

Queue (66 bytes): A null-terminated Unicode string, which is the LPR queue name.

IPAddress (32 bytes): A null-terminated Unicode string, which is the IPv4 address of the printer.

HardwareAddress (26 bytes): A null-terminated Unicode string, which is the MAC address of the printer.

DeviceType (514 bytes): A null-terminated Unicode string, which is the generic SNMP system device description OID 1.3.6.1.2.1.1.1 (for a network device object ID).

PaddingForAlignment (2 bytes): 2 bytes of padding to align the PortNumber field on a 4-byte boundary. The contents of this field MUST be ignored.

PortNumber (4 bytes): A 32-bit unsigned integer that is the port number of the device.

SNMPEnabled (4 bytes): A 32-bit unsigned integer that MUST be nonzero if the device supports SNMP.

SNMPDevIndex (4 bytes): A 32-bit unsigned integer that is the SNMP device index.