I have a program which always runs in the background. It is also executed automatically each time the computer starts. I want it to recognize when a user logs in, or when a user unlocks his screen, so that it can display a welcome screen. How is this possible?
Does windows send any message to programs when someone unlocks the screen?

thanks
anoop