The following code will allow a developer to programmatically determine the
current user name.
'We need the following API
declaration first
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String,
nSize As Long) As Long