Find out if user logged in?
-
Hi everyone. I'm writing a service that periodically launches a GUI program. I want to check to make sure someone is logged on to the computer before i launch the program so it can interact with the desktop. Is there any easy way to do this? Thank you very much. Jay
-
Hi everyone. I'm writing a service that periodically launches a GUI program. I want to check to make sure someone is logged on to the computer before i launch the program so it can interact with the desktop. Is there any easy way to do this? Thank you very much. Jay
How about
NetWkstaUserGetInfo()
?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Hi everyone. I'm writing a service that periodically launches a GUI program. I want to check to make sure someone is logged on to the computer before i launch the program so it can interact with the desktop. Is there any easy way to do this? Thank you very much. Jay
if u use OpenInputDesktop() and it returns NULL then the interactive desktop is not available. ie: no-one is currently logged on or "using" the computer.