<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/5de19b7e-4ce3-4cc4-978f-8959f46797ba" data-linktype="external">msdn link</a></p><p>The <b>DsrGetDcNameEx</b> method is a predecessor to the <a href="fb8e1146-a045-4c31-98d1-c68507ad5620" data-linktype="relative-path">DsrGetDcNameEx2 (section 3.5.4.3.1)</a>
method. The method SHOULD<a id="Appendix_A_Target_158"></a><a aria-label="Product behavior note 158" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_158" data-linktype="relative-path">&lt;158&gt;</a> return
information about a <a href="b5e7d25a-40b2-41c8-9611-98f53358af66#gt_76a05049-3531-4abd-aec8-30e19954b4bd" data-linktype="relative-path">domain
controller</a> in the specified domain and <a href="b5e7d25a-40b2-41c8-9611-98f53358af66#gt_8abdc986-5679-42d9-ad76-b11eb5a0daba" data-linktype="relative-path">site</a>. 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] wchar_t* DomainName,
   [in, unique] GUID* DomainGuid,
   [in, unique, string] 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>