Any WIN32 API to detect if the machine belongs to WORKGROUP orDOMAIN?

P

pdabak@yahoo.com

Hello,

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

Thanks.
-Prasad
 
P

pdabak@yahoo.com

On Feb 15, 4:39 pm, pda...@yahoo.com wrote:
> Hello,
>
> Is there any WIN32 API that allow me to detect if the given machine
> belongs to WORKGROUP or DOMAIN?
>
> Thanks.
> -Prasad


I managed to solve it using LsaOpenPolicy, LsaQueryInformationPolicy
(info class PolicyPrimaryDomainInformation) APIs.

Thanks.
-Prasad
 
Back
Top Bottom