Locate a DS_BEHAVIOR_WIN2012 DC

When a DS_BEHAVIOR_WIN2012 ([MS-ADTS] section Domain Controller (DC) is required, DsrGetDcNameEx2 method ([MS-NRPC] section is called where:

  • AccountName is the client account name.

  • AllowableAccountControlBits has bits A, B, C, D, E, and F set.

  • DomainName is the client domain name.

  • Flags has bits G, H, and U set.

  • All other fields are set to NULL.

The IP address of the DS_BEHAVIOR_WIN2012 DC is returned in DomainControllerInfo.DomainControllerAddress.