ajetrumpet
Banned
- Local time
- Today, 17:21
- Joined
- Jun 22, 2007
- Messages
- 5,638
This code will give you the name of the computer that you are on. For personal computers, I believe this is the name of the PC that you type into one of the textboxes on the welcome screen. I believe, by default for windows machines, the name is: Windows User Name + "-PC"
PHP:
Declare Function GetComputerName& Lib "kernel32" Alias _
"GetComputerNameA" (ByVal lpBuffer As String, nSize As Long)
PHP:
Function GetIdentifier()
Dim lpBuff As String * 1314
GetComputerName lpBuff, Len(lpBuff)
MsgBox lpBuff
End Function