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 w
Use SystemParametersInfo to detect whether screen saver is running - the calltype is SPI_GETSCREENSAVERRUNNING. This is supported on Win2000 and above.
There is code from @dan_g on StackOverflow here to check if wksta is locked.