I'm writing an app that at times will send notifications to the user in the form of toaster messages.
If the user is not there, he can't see the notification. So what I wanna do is be able to check if the user has locked the screen or if the screensaver happens to be activated.
Any notification that is triggered while the user cannot see it will be delayed and shown when the user logs back in and resumes his session.
I'm on Windows 7 myself, but I'd prefer a solution that works universally for Windows XP and up.