Delphi Xe, Win7
I need the following function:
Function isPcInDomain:bool;
The domain name does not interest me, msdn LsaQueryInformationPolicy too (Or give realisation on Delphi). I would like to have a function that does no need to query the network.
Also it must still work if the local name of the computer contains a .
Tried to define a domain name, but on the personal computer which not in the domain – as a domain name gives out a name of Local Working group 🙁
You can use NetGetJoinInformation: