The DC Locator flags to specify the requirements of a Windows Server 2012 DC or a Windows Server 2012 R2 DC using the DsGetDCName API are as following:
Table 1: Windows Server 2012 DC Locator flags
Name |
|
DS_DIRECTORY_SERVICE_8_REQUIRED |
Requires that the returned domain controller be running Windows Server 2012 or later. |
DS_DIRECTORY_SERVICE_9_REQUIRED |
Requires that the returned domain controller be running Windows Server 2012 R2 or later. |