System Events
-
Ok, does anyone know where I can begin to look for examples of some certain system events that occur on a PC. I need to know the following: 1.) Computer LogOn / Bootup Event 2.) Computer LogOff / Shutdown Event 3.) Computer Idle / Sleep / Awake Events 4.) Screensaver activate / deactivate events I know there is a way to hook the System to receive the Idle event, but can anyone point me in the right direction for some of the other events? Maybe using WMI is an option?
-
Ok, does anyone know where I can begin to look for examples of some certain system events that occur on a PC. I need to know the following: 1.) Computer LogOn / Bootup Event 2.) Computer LogOff / Shutdown Event 3.) Computer Idle / Sleep / Awake Events 4.) Screensaver activate / deactivate events I know there is a way to hook the System to receive the Idle event, but can anyone point me in the right direction for some of the other events? Maybe using WMI is an option?
You might want to start here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/event_handler_function_prototype.asp[^]
What you ask is not easily done because of the events your asking for. Are your writing a service, a user app, or what?
-
You might want to start here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/event_handler_function_prototype.asp[^]
What you ask is not easily done because of the events your asking for. Are your writing a service, a user app, or what?