title: Detect if desktop is locked
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/44980/how-can-i-programmatically-determine-if-my-workstation-is-locked">How can I programmatically determine if my workstation is locked?</a>  </p>
  </blockquote>
  
  
  
  <p>What is the best way to determine if the desktop is locked for the currently logged in user? I looked in MSDN and couldn't find any API calls to detect this. Did I miss something, or is there no simple call I can use?</p>