<div class="content" name="NetrLogonControl" uuid="d62ebadc-9967-49ef-a48d-b4059a7176c5"><p>The <b>NetrLogonControl</b> method is a predecessor to the <span><a href="650a105f-6443-4eb0-839a-188708328fb0" data-linktype="relative-path">NetrLogonControl2Ex</a></span>
method (section <span><a href="df7e5dd1-ebcc-4754-9da0-2e0bded82d29" data-linktype="relative-path">3.5.4.9.1</a>)</span>. All
parameters of this method SHOULD<a id="Appendix_A_Target_270"></a><a aria-label="Product behavior note 270" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_270" data-linktype="relative-path">&lt;270&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_271"></a><a aria-label="Product behavior note 271" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_271" data-linktype="relative-path">&lt;271&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>