title: How to determine if the current Windows session is locked or not?
body: <p>I have an application which runs every hour on a Windows XP Machine. To run properly, this application requires the current session to be unlocked. So I was wondering if there a way to know if the current Windows session is locked or not with C# and .NET 3.5.</p>
  
  <p>UPDATE: The application cannot listen to the SessionNotification events. The application can be kicked off anytime and terminates when completed.</p>
  
  <p>Thanks!</p>