Q: Getting the computername (API)
pauly@magna.com.au (Paul Wilson) wrote: Does anyone know the API call for geting the computer name? I would apreciate any help and and information regarding this. I assume it is one of the network API calls, but I dont seem to be able to find it.
A: API call: Declare Function GetComputerName Lib "kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long or you get it from the registry: HKLM\System\CurrentControlSet\control\ComputerName\ComputerName Return