Click to See Complete Forum and Search --> : gettin' system information


Anon
07-12-2001, 09:59 PM
How can i get the name of the user that is logged on win 9x?

Anon
07-13-2001, 08:18 AM
getenv("USERNAME") maybe?

Anon
07-19-2001, 01:38 PM
if you're running IIS, use getenv("logon_user"); if you're running Apache, well, let me know if you figure it out!! I've tried API calls, registry reads, looked at all the environment variables, etc.
(using the windows API call to getusername returns the username from the current process, which in this case means the system account that apache is running under, I.E.
IUSER_Machinename, NT AUTHORITY)