Jump to content

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


Recommended Posts

Guest pdabak@yahoo.com
Posted

Hello,

 

Is there any WIN32 API that allow me to detect if the given machine

belongs to WORKGROUP or DOMAIN?

 

Thanks.

-Prasad

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest pdabak@yahoo.com
Posted

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

 

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


×
×
  • Create New...