
Getting the Workgroup for a PC
Query the registry, the location is:
HKLM\Software\Microsoft\Windows NT\Current Version\Winlogon
DefaultDomainName: REG_SZ: yourdomainname
This is the same location for domain name or workgroup name.
Try the NetWkstaGetInfo() API with the WKSTA_INFO_100 structure to
determine the Workgroup name.
ACC: How to Retrieve Workgroup Information Under Win32 [accvba]
http://support.microsoft.com/support/kb/articles/q148/8/35.asp
Best Regards,
Alick Ye
Microsoft Support
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. Copy right, 2002 Microsoft Corporation.
All rights reserved.