title: Checking for workstation lock/unlock change with c#
body: <p><strong>DUPLICATE:</strong> <a href="https://stackoverflow.com/questions/44980">How can I programmatically determine if my workstation is locked?</a> </p>
  
  <p>How can I detect (during runtime) when a Windows user has locked their screen (Windows+L) and unlocked it again. I know I could globally track keyboard input, but is it possible to check such thing with environment variables?</p>