<div class="content" name="R_WinsStatusWHdl" uuid="275886f4-ef7b-43e1-a60f-34b51ab54c9d"><p>The R_WinsStatusWHdl method retrieves various configuration
settings and the statistics of a <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_f2f9c250-6c9e-445f-b677-376f23f77d87" data-linktype="relative-path">WINS server</a>.</p><dl>
<dd>
<div><pre> DWORD R_WinsStatusWHdl(
   [in, ref] WINSIF_HANDLE ServerHdl,
   [in] WINSINTF_CMD_E Cmd_e,
   [in, out, ref] PWINSINTF_RESULTS_NEW_T pResults
 );
</pre></div>
</dd></dl><p><b>ServerHdl: </b>An <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> binding over IP
address/HostName to the WINS server. RPC uses this binding internally to determine
which WINS server the call is directed to. See <a href="https://go.microsoft.com/fwlink/?LinkId=205437" data-linktype="external">[MSDN-Handles]</a> for
more information.</p><dl>
<dd>
<p>This value MUST be ignored by the WINS server on
receipt.</p>
</dd></dl><p><b>Cmd_e: </b>The command to be executed on the <a href="a83205a2-23e2-41bb-84e1-4d968aaae4e8#gt_cb0d3fc4-7e24-49af-82c4-91a35bca857f" data-linktype="relative-path">target WINS server</a>.</p><p><b>pResults: </b>A pointer to a structure of type <a href="5e0a0782-cec0-4cce-ac6d-01b36923a8db" data-linktype="relative-path">WINSINTF_RESULTS_NEW_T (section 2.2.2.11)</a>
that contains the results of the command execution.</p><p><b>Return Values: </b>A 32-bit unsigned integer that
indicates the return status. A return value of ERROR_SUCCESS (0x00000000)
indicates that operation completed successfully. A nonzero return value is a
Win32 error code, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.
The following Win32 error codes can be returned:</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 ERROR_SUCCESS</td>
  <td>The call was successful.</td>
 </tr><tr>
  <td>0x00000FA0 ERROR_WINS_INTERNAL</td>
  <td>An error occurred while processing the RPC call.</td>
 </tr><tr>
  <td>0x00000005 ERROR_ACCESS_DENIED</td>
  <td>The caller doesn&#39;t have sufficient permissions.</td>
 </tr></tbody></table>
</dd></dl><p>The behavior of this method is the same as that of the <b>R_WinsStatusNew</b>
method (section <a href="bd857b12-034b-48af-9cbc-63be9e3603fa" data-linktype="relative-path">3.1.4.20</a>).</p></div>