<div class="content" name="FAX_EndCopy" uuid="efdf1a1b-8f2c-450c-b6a7-36f115aa6ec3"><p>The <b>FAX_EndCopy (Opnum 72)</b> method is called by the
client to end a copy operation process from or to the server, and to close the
respective copy handle.</p><p>On success, the server MUST terminate the specified copy
operation previously begun with <b>FAX_StartCopyToServer</b> (section <a href="d4fdc04e-6594-4563-9700-d4cc645b4335" data-linktype="relative-path">3.1.4.1.97</a>) or <b>FAX_StartCopyMessageFromServer</b>
(section <a href="eeec1571-a24c-4cb3-bc2a-875300086431" data-linktype="relative-path">3.1.4.1.96</a>).</p><dl>
<dd>
<div><pre> error_status_t FAX_EndCopy(
   [in, out, ref] PRPC_FAX_COPY_HANDLE lphCopy
 );
</pre></div>
</dd></dl><p><b>lphCopy: </b>A copy handle that MUST be returned
by <b>FAX_StartCopyToServer</b> or <b>FAX_StartCopyMessageFromServer</b>.</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 <a href="cbe6c4fb-4dda-4f6c-9701-0d490ba0d105" data-linktype="relative-path">2.2.52</a>, or one
of the other standard errors defined in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d" data-linktype="relative-path">2.2</a>.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>ERROR_INVALID_HANDLE 0x00000006</td>
  <td>This error code SHOULD be returned if the handle pointed to by the specified lphCopy parameter is not a valid handle returned by FAX_StartCopyToServer or FAX_StartCopyMessageFromServer.&lt;78&gt;</td>
 </tr></tbody></table>
</dd></dl><p><b>Exceptions Thrown: </b>No exceptions are thrown
except those that are thrown by the underlying <a href="46aba9c4-ebb1-4b10-86ac-4bb3025657b9#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> protocol, <a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a>.</p></div>