I can't find a way of retrieving the name of the domain a machine is in. I can find things like LookupAccountName() but that seems to require the domain, so it is circular in my case. Does anyone know how to retrieve the windows domain of the local machine. Thanks, Tom
Thomas Bolioli wrote: > I can't find a way of retrieving the name of the domain a machine is in. > I can find things like LookupAccountName() but that seems to require the > domain, so it is circular in my case. > Does anyone know how to retrieve the windows domain of the local machine. > Thanks, LsaQueryInformationPolicy Corinna -- Corinna Vinschen Cygwin Project Co-Leader Red Hat
Thank you. I would never have thought to look there. I was digging through AD stuff. Thanks, Tom Corinna Vinschen wrote: > Thomas Bolioli wrote: >> I can't find a way of retrieving the name of the domain a machine is in. >> I can find things like LookupAccountName() but that seems to require the >> domain, so it is circular in my case. >> Does anyone know how to retrieve the windows domain of the local machine. >> Thanks, > > LsaQueryInformationPolicy > > > Corinna >