rdrast
Lifetime Supporting Member
Sorry, I forgot to include the import from the library, Put this above the function definition:
Code:
'*******************************************************************
' Function Declarations:
' GetComputerName is imported from kernel32, and used to determine
' exactly what computer this routine is running on.
' Logging should only be done by ONE PC.
'*******************************************************************
Private Declare Function GetComputerName Lib "kernel32" _
Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long