-
Verifying
How do I verify who is logged in. I don't want my app to be used by the "user" group only administrators or power users.
Any code would be much appreciated.
The idea is to have no logon screens, I want the app to detect and then startup if the user is an administrator or power user, or return an error saying please login as administrator/power user.
Thanks, James
-
Windows NT4 + 2000, is it also poss with Win9x?
-
Its possible on NT and 2k, perhaps 9x. NT/2k are actually the same architecture so they support most of the same stuff. The docs say 95/98 support the username function but I don't know about ME
You can use this API to get the username:
Public Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long