<div class="content" name="PORT_DATA_1" uuid="bd1e99bb-8a27-47c3-b276-e38fda1f9d34"><p>The <b>PORT_DATA_1</b> structure specifies level 1 port
configuration data.</p><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="32">PortName (128 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">Version</td>
 </tr>
 <tr>
  <td colspan="32">Protocol</td>
 </tr>
 <tr>
  <td colspan="32">Size</td>
 </tr>
 <tr>
  <td colspan="32">Reserved</td>
 </tr>
 <tr>
  <td colspan="32">HostAddress (98 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="16">...</td>
  <td colspan="16">SNMPCommunity (66 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">DoubleSpool</td>
 </tr>
 <tr>
  <td colspan="32">Queue (66 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="16">...</td>
  <td colspan="16">IPAddress (32 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="16">...</td>
  <td colspan="16">HardwareAddress (26 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">DeviceType (514 bytes)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="16">...</td>
  <td colspan="16">PaddingForAlignment</td>
 </tr>
 <tr>
  <td colspan="32">PortNumber</td>
 </tr>
 <tr>
  <td colspan="32">SNMPEnabled</td>
 </tr>
 <tr>
  <td colspan="32">SNMPDevIndex</td>
 </tr>
</tbody></table><p><b>PortName (128 bytes): </b>A null-terminated <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_b069acb4-e364-453e-ac83-42d469bb339e" data-linktype="relative-path">Unicode
string</a></span>, which is the name of the <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_ac027425-6043-4ad3-be27-56a381b75d38" data-linktype="relative-path">port</a></span>.</p><p><b>Version (4 bytes): </b>A 32-bit unsigned integer that
specifies the version number of the <b>PORT_DATA_1</b> structure. This value
MUST be 0x00000001.</p><p><b>Protocol (4 bytes): </b>A 32-bit unsigned integer
that specifies the protocol to use for the port. This value MUST be either <b>PROTOCOL_RAWTCP_TYPE</b>
(0x00000001), indicating that the port expects RAW print data, or <b>PROTOCOL_LPR_TYPE</b>
(0x00000002), indicating that the port expects to be driven as an LPR port.</p><p><b>Size (4 bytes): </b>A 32-bit unsigned integer that
specifies the size, in bytes, of the <b>PORT_DATA_1</b> structure.</p><p><b>Reserved (4 bytes): </b>A 32-bit unsigned integer
that is set to zero.</p><p><b>HostAddress (98 bytes): </b>A null-terminated
Unicode string, which is the IP address or host name of the printer.</p><p><b>SNMPCommunity (66 bytes): </b>A null-terminated
Unicode string, which is the <a id="_Hlk147243825">Simple Network Management
Protocol (SNMP) </a><a href="https://go.microsoft.com/fwlink/?LinkId=121934" data-linktype="external">[RFC1157]</a>
community name of the printer.</p><p><b>DoubleSpool (4 bytes): </b>A 32-bit unsigned
integer that, if nonzero, indicates that double spooling is enabled or, if zero,
indicates that double spooling is disabled.</p><p><b>Queue (66 bytes): </b>A null-terminated Unicode
string, which is the LPR queue name.</p><p><b>IPAddress (32 bytes): </b>A null-terminated
Unicode string, which is the <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_0f25c9b5-dc73-4c3e-9433-f09d1f62ea8e" data-linktype="relative-path">IPv4</a></span> address of the
printer.</p><p><b>HardwareAddress (26 bytes): </b>A null-terminated
Unicode string, which is the MAC address of the printer.</p><p><a id="_Hlk146813007"><b>DeviceType (514 bytes): </b>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).</a></p><p><b>PaddingForAlignment (2 bytes): </b>2 bytes of
padding to align the <b>PortNumber</b> field on a 4-byte boundary. The contents
of this field MUST be ignored.</p><p><b>PortNumber (4 bytes): </b>A 32-bit unsigned
integer that is the port number of the device.</p><p><b>SNMPEnabled (4 bytes): </b>A 32-bit unsigned
integer that MUST be nonzero if the device supports SNMP.</p><p><b>SNMPDevIndex (4 bytes): </b>A 32-bit unsigned
integer that is the SNMP device index.</p></div>