<DllImport("kernel32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, <Out()> ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean
The Netbios function interprets and executes the specified network control block (NCB). The Netbios function is provided primarily for applications that were written for the NetBIOS interface and need to be ported to Windows. Applications not requiring compatibility with NetBIOS should use other interfaces, such as mailslots, named pipes, RPC, or distributed COM to accomplish tasks similar to those supported by NetBIOS. These other interfaces are more flexible and portable.
4/8/2009 9:19:22 AM - -22.214.171.124
Values that specify a type of computer name, as in GetComputerNameEx and SetComputerNameEx.