<div class="content"><p> </p><p>The <b>R_InetInfoQueryStatistics</b> method is called by the
client. In response, the server retrieves statistical data for the specified <span><a href="ce912734-75c3-403c-8816-38e34e24df2f#gt_d9a0cf88-f6d7-4c52-a9fc-4ce5a7cb7260" data-linktype="relative-path">Internet
protocol server</a></span>.</p><dl>
<dd>
<div><pre> DWORD R_InetInfoQueryStatistics(
   [in, string, unique] INET_INFO_IMPERSONATE_HANDLE pszServer,
   [in] DWORD Level,
   [in] DWORD dwServerMask,
   [out, switch_is(Level)] LPINET_INFO_STATISTICS_INFO StatsInfo
 );
</pre></div>
</dd></dl><p><b>pszServer: </b>The custom binding handle for the
target system, as specified in section <span><a href="a6931aa0-3ab6-4018-a398-e142cb8e409e" data-linktype="relative-path">2.1.1</a></span>. The value
MUST NOT be used by the server implementation.</p><p><b>Level: </b>The level of detail to be retrieved.
This member MUST be set to 0. If another value is sent by the client, the
server MUST return ERROR_INVALID_LEVEL (0x0000007C).</p><p><b>dwServerMask: </b> The identifier for the target
Internet protocol server, as specified in section <span><b><a href="3e99d087-d9fd-46f8-a626-8656a4c58770" data-linktype="relative-path">2.2.2</a></b></span>. A value
of 0 indicates that aggregate statistical data is to be returned for all
protocol servers.</p><p><b>StatsInfo: </b>The pointer to an <span><b><a href="c3c2c4d3-5bb1-43be-8e7f-5bb9ffc433b6" data-linktype="relative-path">INET_INFO_STATISTICS_INFO</a></b></span>
union that contains the data to be returned. </p><p><b>Return Values: </b>The method returns 0
(ERROR_SUCCESS) to indicate success; otherwise, it returns a nonzero error
code, as specified 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>
or [MS-ERREF] section <span><a href="../ms-erref/596a1078-e883-4972-9bbc-49e60bebca55" data-linktype="relative-path">2.3.1</a></span>.
The following table describes possible error code values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x0000007C</p>
  <p>ERROR_INVALID_LEVEL</p>
  </td>
  <td>
  <p>The system call level is not correct.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>Exceptions Thrown:</b> No exceptions are thrown
beyond those thrown by the underlying <span><a href="ce912734-75c3-403c-8816-38e34e24df2f#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a></span> protocol, as
specified in <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.</p><p>In response to this request from the client, the server MAY
return the statistical data in <i>StatsInfo</i> if the return code indicates
success.<a id="Appendix_A_Target_11"></a><a aria-label="Product behavior note 11" href="29ba1825-00cc-45cb-8b68-4758993395cd#Appendix_A_11" data-linktype="relative-path">&lt;11&gt;</a></p></div>