Tech Support > Operating Systems > Windows NT > Any WIN32 API to detect if the machine belongs to WORKGROUP orDOMAIN?
Any WIN32 API to detect if the machine belongs to WORKGROUP orDOMAIN?
Posted by pdabak@yahoo.com on February 15th, 2008


Hello,

Is there any WIN32 API that allow me to detect if the given machine
belongs to WORKGROUP or DOMAIN?

Thanks.
-Prasad

Posted by pdabak@yahoo.com on February 15th, 2008


On Feb 15, 4:39*pm, pda...@yahoo.com wrote:
I managed to solve it using LsaOpenPolicy, LsaQueryInformationPolicy
(info class PolicyPrimaryDomainInformation) APIs.

Thanks.
-Prasad




Similar Posts