Question

How do I get information whether the system is configured as domain controller or not programatically on windows.

Était-ce utile?

La solution

You can avoid the HKLM read, GetVersionEx's OSVERSIONINFOEX.wProductType will equal VER_NT_DOMAIN_CONTROLLER

Autres conseils

Examine the registry key HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions\ProductType. A domain controller will have the value LanmanNT. LINK

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top