<div class="content"><p> </p><p>The <b>FAX_ClosePort (Opnum 3)</b> method is called by the
client to close an open fax port. The client passes FaxPortHandle, which it
received from a call to <b>FAX_OpenPort</b> (section <span><a href="aca2b58a-e310-42dc-9903-18c5b6c35797" data-linktype="relative-path">3.1.4.1.65</a></span>).</p><p>In response, the server MUST validate that the port handle
specified by the <i>FaxPortHandle</i> argument is a valid open port handle
returned by a call to <b>FAX_OpenPort</b>. On success, the server MUST close
the specified port.</p><dl>
<dd>
<div><pre> error_status_t FAX_ClosePort(
   [in, out] PRPC_FAX_PORT_HANDLE FaxPortHandle
 );
</pre></div>
</dd></dl><p><b>FaxPortHandle: </b>A pointer to a fax port handle.</p><p><b>Return Values: </b>This method MUST return
0x00000000 (ERROR_SUCCESS) for success; otherwise, it MUST return one of the
following error codes, one of the fax-specific errors that are defined in
section <span><a href="cbe6c4fb-4dda-4f6c-9701-0d490ba0d105" data-linktype="relative-path">2.2.52</a></span>, or one of
the other standard errors defined in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>
section <span><a href="../ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d" data-linktype="relative-path">2.2</a></span>.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>ERROR_INVALID_HANDLE</p>
  <p>0x00000006</p>
  </td>
  <td>
  <p><i>FaxPortHandle</i> is not a valid open port handle
  returned by <i>FAX_OpenPort</i>. <a id="Appendix_A_Target_71"></a><a aria-label="Product behavior note 71" href="056171e7-80bc-45ff-8107-66ba3abb2023#Appendix_A_71" data-linktype="relative-path">&lt;71&gt;</a></p>
  </td>
 </tr><tr>
  <td>
  <p>ERROR_INVALID_PARAMETER</p>
  <p>0x00000057</p>
  </td>
  <td>
  <p>The <b>RPC_FAX_PORT_HANDLE</b> fax data type
  referenced by the <i>FaxPortHandle</i> parameter is set to a NULL pointer
  value.<a id="Appendix_A_Target_72"></a><a aria-label="Product behavior note 72" href="056171e7-80bc-45ff-8107-66ba3abb2023#Appendix_A_72" data-linktype="relative-path">&lt;72&gt;</a></p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>Exceptions Thrown: </b>No exceptions are thrown
except those that are thrown by the underlying <span><a href="46aba9c4-ebb1-4b10-86ac-4bb3025657b9#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a></span> protocol <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.</p></div>