Much to my dismay and horror, I find that Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long doesn't work on Windows 2000, or at least the code I have doesn't work.
How do you get the logged in User Account on a Windows 2000 machine?
How do you get the logged in User Account on a Windows 2000 machine?