<div class="content"><p> </p><p>The <b>FAX_SetReceiptsConfiguration (Opnum 35</b>) method is
called by the client. On success, the server MUST set the receipt configuration
information that is used by the fax server to send delivery receipts for fax
transmissions.<a id="Appendix_A_Target_169"></a><a aria-label="Product behavior note 169" href="056171e7-80bc-45ff-8107-66ba3abb2023#Appendix_A_169" data-linktype="relative-path">&lt;169&gt;</a></p><dl>
<dd>
<div><pre> error_status_t FAX_SetReceiptsConfiguration(
   [in] handle_t hFaxHandle,
   [in, ref] const PFAX_RECEIPTS_CONFIGW pReceipts
 );
</pre></div>
</dd></dl><p><b>hFaxHandle: </b>The RPC binding handle for this
call. The client SHOULD reuse the RPC binding handle used as an input <i>hBinding</i>
argument for the <b>FAX_ConnectFaxServer</b> (section <span><a href="5cbfd38d-7a14-4560-ad24-9ed78f19a3bb" data-linktype="relative-path">3.1.4.1.10</a></span>)
or <b>FAX_ConnectionRefCount</b> (section <span><a href="a92941ac-bd07-4a71-af85-c2c157c97cf9" data-linktype="relative-path">3.1.4.1.11</a></span>) method
call used to connect to the fax server.</p><p><b>pReceipts: </b>A pointer to a <b>FAX_RECEIPTS_CONFIGW</b> (section
<span><a href="ce34af0c-256c-44e2-9a5f-02b625c88f29" data-linktype="relative-path">2.2.47</a></span>)
object.</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_ACCESS_DENIED</p>
  <p>0x00000005</p>
  </td>
  <td>
  <p>Access is denied. The client&#39;s fax user account does
  not have the required FAX_ACCESS_MANAGE_CONFIG authorization for this
  operation.</p>
  </td>
 </tr><tr>
  <td>
  <p>ERROR_NOT_SUPPORTED</p>
  <p>0x00000032</p>
  </td>
  <td>
  <p>The <b>dwAllowedReceipts</b> member of the <i>pReceipts</i>
  parameter contains the <b>DRT_MSGBOX</b> flag value (described in <b>FAX_ENUM_DELIVERY_REPORT_TYPES</b>),
  and the fax server does not support this type of fax receipts.<a id="Appendix_A_Target_170"></a><a aria-label="Product behavior note 170" href="056171e7-80bc-45ff-8107-66ba3abb2023#Appendix_A_170" data-linktype="relative-path">&lt;170&gt;</a></p>
  </td>
 </tr><tr>
  <td>
  <p>ERROR_INVALID_PARAMETER</p>
  <p>0x00000057</p>
  </td>
  <td>
  <p>The parameter is incorrect. This error code is
  returned if any of the following conditions are met:</p>
  <p><span>§<span>  
  </span></span>The <i>dwSizeOfStruct</i> member of <i>pReceipts</i> is not
  equal to the correct size, in bytes, for the <b>FAX_RECEIPTS_CONFIGW</b>.</p>
  <p><span>§<span>  
  </span></span>The <b>dwAllowedReceipts</b> member of <i>pReceipts</i>
  contains one or more invalid flag values (not defined for the <b>FAX_ENUM_DELIVERY_REPORT_TYPES</b>
  (section <span><a href="7a03bb5e-3ba7-45ec-b869-31350298e9b9" data-linktype="relative-path">2.2.76</a></span>)
  enumeration).</p>
  <p><span>§<span>  
  </span></span>The following member values are set in the submitted <i>pReceipts</i>:
  the <b>DRT_EMAIL</b> flag is set within the <b>dwAllowedReceipts</b> member,
  the <b>bIsToUseForMSRouteThroughEmailMethod</b> member is set to FALSE, and
  the <b>lpwstrSMTPPasswordmember</b> is set to a non-NULL pointer value.</p>
  <p><span>§<span>  
  </span></span>In the submitted <i>pReceipts</i>, the <b>DRT_EMAIL</b> flag is
  set within the <b>dwAllowedReceipts</b> member or the <b>bIsToUseForMSRouteThroughEmailMethod</b>
  member is set to TRUE and the <b>SMTPAuthOption</b> member is set to a value
  lower than <b>FAX_SMTP_AUTH_ANONYMOUS</b> or greater than <b>FAX_SMTP_AUTH_NTLM</b>.</p>
  <p><span>§<span>  
  </span></span>The fax server tried to return FAX_ERR_NOT_SUPPORTED_ON_THIS_SKU
  but the client fax API version (FAX_API_VERSION_0, described in section
  3.1.4.1.10) does not support this error code. </p>
  </td>
 </tr><tr>
  <td>
  <p>ERROR_REGISTRY_CORRUPT</p>
  <p>0x000003F7</p>
  </td>
  <td>
  <p>The registry is corrupted. The structure of one of the
  files containing registry data is corrupted, or the system&#39;s memory image of
  the file is corrupted, or the file could not be recovered because the
  alternate copy or log was absent or corrupted.</p>
  </td>
 </tr><tr>
  <td>
  <p>FAX_ERR_NOT_SUPPORTED_ON_THIS_SKU</p>
  <p>0x00001B63</p>
  </td>
  <td>
  <p>The fax client module API version (described in
  section 3.1.4.1.10) is FAX_API_VERSION_1 or above, and the fax server is
  running on a version of the operating system that does not support the
  requested operation.<a id="Appendix_A_Target_171"></a><a aria-label="Product behavior note 171" href="056171e7-80bc-45ff-8107-66ba3abb2023#Appendix_A_171" data-linktype="relative-path">&lt;171&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>