|
|
Return the name of the current user
Added on 10/2/2000
|
Compatibilities:
Required Xtras:
Buddy API
|
This item has not yet been rated
|
This function will return the name of the current logged in user. Call like this...
currentUser = returnCurrentUser()
on returnCurrentUser me
if baVersion( "windows" ) >= 4 then
return baReadRegString("SoftwareMicrosoftWindows NTCurrentVersionWinlogon", "DefaultUserName", "RSI", "HKEY_LOCAL_MACHINE")
else if baVersion("windows") >= 4 then
return baReadRegString("NetworkLogon", "UserName", "", "HKEY_LOCAL_MACHINE")
end if
end
on getBehaviorDescription me
describe = "This function will return the name of the current logged in user. Call like this..." & return & "currentUser = returnCurrentUser()"
return describe
end
|
|