<div class="content"><p>The RGetNotifyResults method<a id="Appendix_A_Target_75"></a><a aria-label="Product behavior note 75" href="041d2a89-9d7d-4f79-91a1-c336d0a668f6#Appendix_A_75" data-linktype="relative-path">&lt;75&gt;</a> returns
notification information when the specified status change that was previously
requested by the client via <a href="b4cb2447-1f8c-4dee-a78e-209bdacadea6" data-linktype="relative-path">RNotifyServiceStatusChange (section 3.1.4.43)</a>
occurs on a specified service.</p><p>The client MUST make one call to RGetNotifyResults for each
call to RNotifyServiceStatusChange.</p><dl>
<dd>
<div><pre> error_status_t RGetNotifyResults(
   [in] SC_NOTIFY_RPC_HANDLE hNotify,
   [out] PSC_RPC_NOTIFY_PARAMS_LIST* ppNotifyParams
 );
</pre></div>
</dd></dl><p><b>hNotify: </b>An <a href="40e0fec2-d70a-4182-9a45-b5da7e2d0943" data-linktype="relative-path">SC_NOTIFY_RPC_HANDLE (section 2.2.6)</a>
data type that defines a handle to the notification status associated with the
client. This is the handle returned by an RNotifyServiceStatusChange call.</p><p><b>ppNotifyParams: </b>A pointer to a buffer that
receives an <a href="46063c64-07cb-4055-985c-75fffb259f41" data-linktype="relative-path">SC_RPC_NOTIFY_PARAMS_LIST (section 2.2.24)</a>
data type.</p><p><b>Return Values: </b>The method returns 0x00000000
(ERROR_SUCCESS) on success; otherwise, it returns one of the following error
codes.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>6</p>
  <p>ERROR_INVALID_HANDLE</p>
  </td>
  <td>
  <p>The handle is no longer valid.</p>
  </td>
 </tr><tr>
  <td>
  <p>1115</p>
  <p>ERROR_SHUTDOWN_IN_PROGRESS</p>
  </td>
  <td>
  <p>The system is shutting down.</p>
  </td>
 </tr><tr>
  <td>
  <p>1235</p>
  <p>ERROR_REQUEST_ABORTED</p>
  </td>
  <td>
  <p>The request was aborted.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>In response to this request, the server MUST wait until the
service state in the <a href="4f66d32e-2f4f-4482-998e-e5ccbb445223#gt_1fbb7936-8437-4e3d-b62f-47df3be07721" data-linktype="relative-path">service
record</a> changes to one of the values specified in the <a href="0e88b912-da92-411d-915a-b9b7df6d64fc" data-linktype="relative-path">SC_RPC_NOTIFY_PARAMS (section 2.2.23)</a>
structure passed to the <b>RNotifyServiceStatusChange</b> method that returned
the <i>hNotify</i> parameter. When the service changes state to one of the
values specified in the SC_RPC_NOTIFY_PARAMS structure associated with the <i>hNotify</i>
parameter, the server MUST update the client by setting the appropriate values
in the <i>ppNotifyParams</i> parameter and returning the call.<a id="Appendix_A_Target_76"></a><a aria-label="Product behavior note 76" href="041d2a89-9d7d-4f79-91a1-c336d0a668f6#Appendix_A_76" data-linktype="relative-path">&lt;76&gt;</a></p><p>The client MUST ignore any value set in the <i>ullThreadId</i>
parameter in <i>ppNotifyParams</i>.</p></div>