title: Detecting if Windows Login Screen is visible to user in VB.NET
body: <p>Hey StackOverflow VB.NET members,</p>
  
  <p>After running the following code (which locks the computer), what code must I be applying to see if the user has successfully logged into the computer and that "Lock Screen" I'd so called has disappeared?</p>
  
  <pre><code>Private Declare Function LockWorkStation Lib "user32.dll" () As Long
  
  Private Function LockComputer()
      LockWorkStation()
  End Function
  </code></pre>
  
  <p>I will call "LockComputer", after that what do I do to see if the Lock screen so called by this function (after say 2 minutes) has disappeared or is still there asking for the password from the user!</p>
  
  <p>Thanks,
  Akshit Soota</p>