<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/86a3fa5b-1f0e-412a-942f-33a10e5e9eff" data-linktype="external">msdn link</a></p><p>The <b>DsrGetDcName</b> method is a predecessor to the <a href="fb8e1146-a045-4c31-98d1-c68507ad5620" data-linktype="relative-path">DsrGetDcNameEx2</a> method
(section 3.5.4.3.1). The method SHOULD<a id="Appendix_A_Target_159"></a><a aria-label="Product behavior note 159" href="0c858a52-732a-43ec-85dd-e44b357c1898#Appendix_A_159" data-linktype="relative-path">&lt;159&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. All parameters of this method have the
same meanings as the identically named parameters of the <b>DsrGetDcNameEx2</b>
method, except for the <i>SiteGuid</i> parameter, detailed as follows. </p><dl>
<dd>
<div><pre> NET_API_STATUS DsrGetDcName(
   [in, unique, string] LOGONSRV_HANDLE ComputerName,
   [in, unique, string] wchar_t* DomainName,
   [in, unique] GUID* DomainGuid,
   [in, unique] GUID* SiteGuid,
   [in] ULONG Flags,
   [out] PDOMAIN_CONTROLLER_INFOW* DomainControllerInfo
 );
</pre></div>
</dd></dl><p><b>SiteGuid: </b>This parameter MUST be NULL and
ignored upon receipt.</p><p>The <b>DsrGetDcName</b> call accepts the <i>SiteGuid</i>
parameter instead of the <i>SiteName</i> parameter of the <b>DsrGetDcNameEx</b>
call. On receiving this call, the server MUST perform all of the processing
done on receiving the <b>DsrGetDcNameEx</b> call.</p></div>