<div class="content" name="RCloseNotifyHandle" uuid="65ce8393-c4a1-4c37-91da-2f65e9f0df5d"><p>The RCloseNotifyHandle method<a id="Appendix_A_Target_77"></a><a aria-label="Product behavior note 77" href="041d2a89-9d7d-4f79-91a1-c336d0a668f6#Appendix_A_77" data-linktype="relative-path">&lt;77&gt;</a>
unregisters the client from receiving future notifications via the <span><a href="7020f3e1-17b9-4956-80dc-583ea1509fe6" data-linktype="relative-path">RGetNotifyResults (section 3.1.4.44)</a></span>
method from the server for specified status changes on a specified service. </p><dl>
<dd>
<div><pre> DWORD RCloseNotifyHandle(
   [in, out] LPSC_NOTIFY_RPC_HANDLE phNotify,
   [out] PBOOL pfApcFired
 );
</pre></div>
</dd></dl><p><b>phNotify: </b>An <span><a href="40e0fec2-d70a-4182-9a45-b5da7e2d0943" data-linktype="relative-path">SC_NOTIFY_RPC_HANDLE (section 2.2.6)</a></span>
data type that defines a handle to the notification status associated with the
client. This is the handle returned by an <span><a href="b4cb2447-1f8c-4dee-a78e-209bdacadea6" data-linktype="relative-path">RNotifyServiceStatusChange</a></span>
call.</p><p><b>pfApcFired: </b>Not used.</p><p><b>Return Values: </b>The method returns 0x00000000
(ERROR_SUCCESS) on success; otherwise, it returns the following error code.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>6 ERROR_INVALID_HANDLE</td>
  <td>The handle is no longer valid.</td>
 </tr></tbody></table>
</dd></dl><p>In response to this request from the client, for a
successful operation the server MUST close the handle specified in the <i>phNotify</i>
parameter and stop notifying the client about status changes for the <span><a href="4f66d32e-2f4f-4482-998e-e5ccbb445223#gt_1fbb7936-8437-4e3d-b62f-47df3be07721" data-linktype="relative-path">service
record</a></span> associated with the handle. </p></div>