Tag: Programming

Get the current username

Get the username of the currently logged on user.Option Explicit Private Const UNKNOWN = _"(Value Unknown Because System Call Failed)" Private Declare Function GetUserName Lib "advapi32.dll" _Alias "GetUserNameA" (ByVal lpBuffer…