get logged on user
-
hello, i need to know who to determine whether a user is logged on or not. i have already tried GetUserName but this didn't work, because i have a service running as 'system', so GetUserName only returns 'system'. Now, how can i get this information ? OS: Windows 2000 Thanks in advance.
-
hello, i need to know who to determine whether a user is logged on or not. i have already tried GetUserName but this didn't work, because i have a service running as 'system', so GetUserName only returns 'system'. Now, how can i get this information ? OS: Windows 2000 Thanks in advance.
Check out the
UserName
property ofWin32_ComputerSystem
.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
hello, i need to know who to determine whether a user is logged on or not. i have already tried GetUserName but this didn't work, because i have a service running as 'system', so GetUserName only returns 'system'. Now, how can i get this information ? OS: Windows 2000 Thanks in advance.
If this is Windows 2000 and you think they will always launch the shell you could simpy enumerate processes looking for explorer.exe or whatever they replaced the shell with. Alternatively you could write a Winlogon Notification DLL which gets notified of events such as Logon and Logoff. 8bc7c0ec02c0e404c0cc0680f7018827ebee
-
hello, i need to know who to determine whether a user is logged on or not. i have already tried GetUserName but this didn't work, because i have a service running as 'system', so GetUserName only returns 'system'. Now, how can i get this information ? OS: Windows 2000 Thanks in advance.