<div class="content" name="FAX_PORT_INFO_EXW" uuid="7eced07f-d7be-4554-ada6-e1a1e56f1ae1"><p>The <b>_FAX_PORT_INFO_EXW</b> data type is the
custom-marshaled variant of the <b>FAX_PORT_INFO_EXW</b> (section <a href="530c0daf-f12f-47d6-bd67-37096ff71a52" data-linktype="relative-path">2.2.45</a>) structure. This
data type is used for <b>FAX_EnumPortsEx</b> (section <a href="f26e50ab-ed8e-448d-928c-1820f4a42918" data-linktype="relative-path">3.1.4.1.29</a>) and <b>FAX_GetPortEx</b>
(section <a href="6e9e5f47-0016-43b9-9565-c6d135d2c061" data-linktype="relative-path">3.1.4.1.52</a>).</p><p>This data structure is custom marshaled as follows and uses
the custom-marshaling rules defined in section <a href="a660ed3e-062f-4b49-ab5b-0ba19ea7598d" data-linktype="relative-path">2.2.1</a>.</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">Fixed_Portion (48 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">Variable_Data (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
</tbody></table><p><b>Fixed_Portion (48 bytes):</b></p><dl>
<dd>
<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">dwSizeOfStruct</td>
 </tr>
 <tr>
  <td colspan="32">dwDeviceID</td>
 </tr>
 <tr>
  <td colspan="32">lpcwstrDeviceNameOffset</td>
 </tr>
 <tr>
  <td colspan="32">lpwstrDescriptionOffset</td>
 </tr>
 <tr>
  <td colspan="32">lpcwstrProviderNameOffset</td>
 </tr>
 <tr>
  <td colspan="32">lpcwstrProviderGUIDOffset</td>
 </tr>
 <tr>
  <td colspan="32">bSend</td>
 </tr>
 <tr>
  <td colspan="32">ReceiveMode</td>
 </tr>
 <tr>
  <td colspan="32">dwStatus</td>
 </tr>
 <tr>
  <td colspan="32">dwRings</td>
 </tr>
 <tr>
  <td colspan="32">lpwstrCsidOffset</td>
 </tr>
 <tr>
  <td colspan="32">lpwstrTsidOffset</td>
 </tr>
</tbody></table>
</dd>
<dd>
<p><b>dwSizeOfStruct (4 bytes):
</b>A <b>DWORD</b> (<a href="../ms-dtyp/cca27429-5689-4a16-b2b4-9325d93e4ba2" data-linktype="relative-path">[MS-DTYP]</a>
section <a href="../ms-dtyp/262627d8-3418-4627-9218-4ffe110850b2" data-linktype="relative-path">2.2.9</a>)
value that holds the size of the <b>Fixed_Portion</b> block, in bytes. This
value MUST be 48 bytes.</p>
</dd>
<dd>
<p><b>dwDeviceID (4 bytes): </b>A
<b>DWORD</b> that holds the line identifier for the specified fax device
(port).</p>
</dd>
<dd>
<p><b>lpcwstrDeviceNameOffset
(4 bytes): </b>Offset to the <b>lpcwstrDeviceName</b> field in the <b>Variable_Data</b>
block.</p>
</dd>
<dd>
<p><b>lpwstrDescriptionOffset
(4 bytes): </b>Offset to the <b>lpcwstrDescription</b> field in the <b>Variable_Data</b>
block.</p>
</dd>
<dd>
<p><b>lpcwstrProviderNameOffset
(4 bytes): </b>Offset to the <b>lpcwstrProviderName</b> field in the <b>Variable_Data</b>
block</p>
</dd>
<dd>
<p><b>lpcwstrProviderGUIDOffset
(4 bytes): </b>Offset to the <b>lpcwstrProviderGUID</b> field in the <b>Variable_Data</b>
block.</p>
</dd>
<dd>
<p><b>bSend (4 bytes): </b>A
Boolean value that indicates whether the fax device is enabled to send faxes.</p>
</dd>
<dd>
<p><b>ReceiveMode (4 bytes): </b>An
<b>FAX_ENUM_DEVICE_RECEIVE_MODE</b> (section <a href="d80da1ab-ab00-44b7-81ff-41f7783b94e2" data-linktype="relative-path">2.2.55</a>) enumerated value
that indicates whether the fax device is enabled to receive faxes and whether
the calls are manually or automatically answered.</p>
</dd>
<dd>
<p><b>dwStatus (4 bytes): </b>A
<b>DWORD</b> that holds the current status of the device. It SHOULD contain any
combination of values from the <b>FAX_ENUM_DEVICE_STATUS</b> (section <a href="267364f2-e9ba-460c-a4b4-10faf8fc8920" data-linktype="relative-path">2.2.64</a>) enumeration or 0
(meaning: status unknown). </p>
</dd>
<dd>
<p><b>dwRings (4 bytes): </b>A <b>DWORD</b>
that holds the number of times an incoming fax call rings before the specified
device answers the call.</p>
</dd>
<dd>
<p><b>lpwstrCsidOffset (4
bytes): </b>Offset to the <b>lpcwstrCsid</b> field in the <b>Variable_Data</b>
block</p>
</dd>
<dd>
<p><b>lpwstrTsidOffset (4
bytes): </b>Offset to the <b>lpcwstrTsid</b> field in the c block.</p>
</dd></dl><p><b>Variable_Data (variable):</b></p><dl>
<dd>
<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">lpcwstrDeviceName (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">lpwstrDescription (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">lpcwstrProviderName (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">lpcwstrProviderGUID (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">lpwstrCsid (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
 <tr>
  <td colspan="32">lpwstrTsid (variable)</td>
 </tr>
 <tr>
  <td colspan="32">...</td>
 </tr>
</tbody></table>
</dd>
<dd>
<p><b>lpcwstrDeviceName
(variable): </b>A null-terminated character string that holds the name of the
fax device.</p>
</dd>
<dd>
<p><b>lpwstrDescription
(variable): </b>A null-terminated character string that holds the description
of the fax device. The length of this string MUST NOT exceed <b>MAX_FAX_STRING_LEN</b>
(section <a href="f14dea0f-f40e-453e-8514-c82d485b8791" data-linktype="relative-path">2.2.86</a>)
characters, including the length of the terminating null character.</p>
</dd>
<dd>
<p><b>lpcwstrProviderName
(variable): </b>A null-terminated character string that holds the name of the
fax device provider.</p>
</dd>
<dd>
<p><b>lpcwstrProviderGUID
(variable): </b>A null-terminated character string that holds the GUID of the
fax device provider.</p>
</dd>
<dd>
<p><b>lpwstrCsid (variable): </b>A
null-terminated character string that holds the called subscriber identifier
for faxes sent using this device. This identifier can be a telephone number.</p>
</dd>
<dd>
<p><b>lpwstrTsid (variable): </b>A
null-terminated character string that holds the transmitting subscriber identifier
for faxes sent using this device. This identifier can be a telephone number.</p>
</dd></dl></div>