Showing posts with label GetComputerName. Show all posts
Showing posts with label GetComputerName. Show all posts

Monday, April 13, 2009

GetComputerName equivalent in VB.NET and C#

The Win32Api GetComputerName has a simpler equivalent in the .NET world:



Dim compName as String = Environment.MachineName.ToString