How to get my Network Workgroup Name with C#

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,

Use P/Invoke to call the NetGetJoinInformation Windows API function.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Diogo Alves - Software Developer"
 
hum...never done that before...

May you write an xample?

Dmytro Lapshyn said:
Hi,

Use P/Invoke to call the NetGetJoinInformation Windows API function.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Diogo Alves - Software Developer"
Hi there,
How to get my Network Workgroup Name with C#???

Hope you can help

Best Regards
 
http://pinvoke.net/default.aspx/netapi32/NetGetJoinInformation.html

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Diogo Alves - Software Developer"
hum...never done that before...

May you write an xample?

Dmytro Lapshyn said:
Hi,

Use P/Invoke to call the NetGetJoinInformation Windows API function.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Diogo Alves - Software Developer"
Hi there,
How to get my Network Workgroup Name with C#???

Hope you can help

Best Regards
 
"Diogo Alves - Software Developer"
Hi there,
How to get my Network Workgroup Name with C#???

Hope you can help

Best Regards

When you need this in a desktop application you can get the Workgroup name
from the Environment.UserDomainName property.

Willy.
 
Back
Top