<div class="content"><p>The <b>PORT_INFO_2</b> structure provides information about
a <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_ac027425-6043-4ad3-be27-56a381b75d38" data-linktype="relative-path">port</a>.</p><dl>
<dd>
<div><pre> typedef struct _PORT_INFO_2 {
   [string] wchar_t* pPortName;
   [string] wchar_t* pMonitorName;
   [string] wchar_t* pDescription;
   DWORD fPortType;
   DWORD Reserved;
 } PORT_INFO_2;
</pre></div>
</dd></dl><p><b>pMonitorName:</b> A pointer to a string that
specifies an installed <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_1b5f368b-942b-40dd-84ea-fa9082916216" data-linktype="relative-path">port
monitor</a>. For rules governing port monitor names, see section <a href="808e2e6c-7f91-4bdd-92da-56fbca513404" data-linktype="relative-path">2.2.4.8</a>.</p><p><b>pDescription:</b> An optional pointer to a
string that specifies additional implementation-specific information about the
printer port.<a id="Appendix_A_Target_48"></a><a aria-label="Product behavior note 48" href="e81cbc09-ab05-4a32-ae4a-8ec57b436c43#Appendix_A_48" data-linktype="relative-path">&lt;48&gt;</a></p><p><b>fPortType:</b> A bit field that specifies
attributes of the printer port. These flags can be combined to specify multiple
attributes.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Name/value</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>PORT_TYPE_WRITE</p>
  <p>0x00000001</p>
  </td>
  <td>
  <p>The port can be written to.</p>
  </td>
 </tr><tr>
  <td>
  <p>PORT_TYPE_READ</p>
  <p>0x00000002</p>
  </td>
  <td>
  <p>The port can be read from.</p>
  </td>
 </tr><tr>
  <td>
  <p>PORT_TYPE_REDIRECTED</p>
  <p>0x00000004</p>
  </td>
  <td>
  <p>The port is a <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_ffff3f01-8c21-44d3-bbda-0062a1fbda4b" data-linktype="relative-path">Terminal Services</a>
  redirected port.</p>
  </td>
 </tr><tr>
  <td>
  <p>PORT_TYPE_NET_ATTACHED</p>
  <p>0x00000008</p>
  </td>
  <td>
  <p>The port is a network TCP/IP port.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>All members not defined in this section are specified in
sections <a href="2607e270-ebe6-4d84-a2f7-12b056fae964" data-linktype="relative-path">2.2.1.3.5</a> and <a href="964b517f-6730-4b4a-99ed-ee9648e7f1f7" data-linktype="relative-path">2.2.1.3</a>.</p></div>