<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/d62ebadc-9967-49ef-a48d-b4059a7176c5" data-linktype="external">msdn link</a></p><p>The <b>NetrLogonControl</b> method is a predecessor to the <a href="650a105f-6443-4eb0-839a-188708328fb0" data-linktype="relative-path">NetrLogonControl2Ex</a> method
(section <a href="df7e5dd1-ebcc-4754-9da0-2e0bded82d29" data-linktype="relative-path">3.5.4.9.1</a><span>)</span>. All parameters of this method SHOULD<a id="Appendix_A_Target_260"></a><a aria-label="Product behavior note 260" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_260" data-linktype="relative-path">&lt;260&gt;</a> have the same meanings as the
identically named parameters of the <b>NetrLogonControl2Ex</b> method. </p><dl>
<dd>
<div><pre> NET_API_STATUS NetrLogonControl(
   [in, unique, string] LOGONSRV_HANDLE ServerName,
   [in] DWORD FunctionCode,
   [in] DWORD QueryLevel,
   [out, switch_is(QueryLevel)] PNETLOGON_CONTROL_QUERY_INFORMATION Buffer
 );
</pre></div>
</dd></dl><p>All restrictions on parameter values in the <b>NetrLogonControl2Ex</b>
method (section 3.5.4.9.1) apply. Extra restrictions are applied to the values
of the <i>FunctionCode</i><a id="Appendix_A_Target_261"></a><a aria-label="Product behavior note 261" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_261" data-linktype="relative-path">&lt;261&gt;</a> and <i>QueryLevel</i>
parameters as follows:</p><ul><li><p><span><span> 
</span></span>The value of <i>QueryLevel</i> parameter is restricted to
0x00000001. If 0x00000002 is used, the error ERROR_NOT_SUPPORTED is returned;
if any value larger than 0x00000002 is used, the error ERROR_INVALID_LEVEL is
returned.</p>
</li></ul><p>Message processing is identical to <b>NetrLogonControl2Ex</b>
(section 3.5.4.9.1<span>)</span>, except for the following:</p><ul><li><p><span><span> 
</span></span>The <i>Data</i> parameter of <b>NetrLogonControl2Ex</b> is set to
NULL.</p>
</li></ul></div>