<div class="content" name="DsrGetDcNameEx" uuid="5de19b7e-4ce3-4cc4-978f-8959f46797ba"><p>The <b>DsrGetDcNameEx</b> method is a predecessor to the <span><a href="fb8e1146-a045-4c31-98d1-c68507ad5620" data-linktype="relative-path">DsrGetDcNameEx2 (section 3.5.4.3.1)</a></span>
method. The method SHOULD<a id="Appendix_A_Target_160"></a><a aria-label="Product behavior note 160" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_160" data-linktype="relative-path">&lt;160&gt;</a> return
information about a <span><a href="b5e7d25a-40b2-41c8-9611-98f53358af66#gt_76a05049-3531-4abd-aec8-30e19954b4bd" data-linktype="relative-path">domain controller</a></span> in
the specified domain and <span><a href="b5e7d25a-40b2-41c8-9611-98f53358af66#gt_8abdc986-5679-42d9-ad76-b11eb5a0daba" data-linktype="relative-path">site</a></span>. All parameters
of this method have the same meanings as the identically named parameters of
the <b>DsrGetDcNameEx2</b> method. </p><dl>
<dd>
<div><pre> NET_API_STATUS DsrGetDcNameEx(
   [in, unique, string] LOGONSRV_HANDLE ComputerName,
   [in, unique, string, range(0,256)] wchar_t* DomainName,
   [in, unique] GUID* DomainGuid,
   [in, unique, string, range(0,256)] wchar_t* SiteName,
   [in] ULONG Flags,
   [out] PDOMAIN_CONTROLLER_INFOW* DomainControllerInfo
 );
</pre></div>
</dd></dl><p>On receiving this call, the server MUST perform all of the
processing done on receiving the <b>DsrGetDcNameEx2</b> call, except that any
processing specific to the <i>AccountName</i> and <i>AllowableAccountControlBits</i>
parameters is ignored. This function MUST be processed as if the <i>AccountName</i>
and <i>AllowableAccountControlBits</i> parameters were not specified.</p></div>