Getting current workgroup or domain name 
Author Message
 Getting current workgroup or domain name

Hi,

Few time ago I needed to get the name of the current computer from VB, so I
used the GetComputerName API and everything OK.
Now I need to get the current workgroup or domain name to which the current
machine belongs to, but I didn't find no API that performs this.
Does anyone know that API (or any other way to accomplish my goal)?

Thanks,

Leonardo Bosi
--------------------------------------
Proximity Soft ( http://www.*-*-*.com/ )
Buenos Aires, Argentina
--------------------------------------



ICQ: 9027216
--------------------------------------
"What do you want to reinstall today...?"



Fri, 22 Jun 2001 03:00:00 GMT  
 Getting current workgroup or domain name
If you want to do it from NT, look at NetWkstaGetInfo

Cheers,

Andy

Quote:
>Hi,

>Few time ago I needed to get the name of the current computer from VB, so I
>used the GetComputerName API and everything OK.
>Now I need to get the current workgroup or domain name to which the current
>machine belongs to, but I didn't find no API that performs this.
>Does anyone know that API (or any other way to accomplish my goal)?

>Thanks,

>Leonardo Bosi
>--------------------------------------
>Proximity Soft (http://www.proximity.com.ar)
>Buenos Aires, Argentina
>--------------------------------------



>ICQ: 9027216
>--------------------------------------
>"What do you want to reinstall today...?"



Sat, 23 Jun 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Domain/Workgroup Name of current user in Win9x

2. Getting domain name of parent domain

3. Getting collections of domains/workgroups etc.

4. Domain-name and/or Workgroup info

5. API calls for retrieving all the Workgroup/Domain/Computer names on the network

6. Get workgroup or domain name

7. Get workgroup or domain name

8. Get workgroup or domain name

9. API calls for retrieving all the Workgroup/Domain/Computer names on the network

10. Domain / Workgroup- Name

11. Getting name from Domain Name Server in VB?

12. get pc names for current workgroup

 

 
Powered by phpBB® Forum Software