title: How to tell when windows users have switched
body: <p>So i am trying to add some windows 7+ functionality to a VB.NET application where i need to be able to tell the following</p>
  
  <p>a) When the active user switches to a different user (using the switch user functionality in Windows 7) ideally looking to trigger some kind of event within my application when this happens.</p>
  
  <p>b) the username of the current active user compared to the user who is running my application</p>
  
  <p>I have so far not found a simple way of doing this (especailly 'a') so would be grateful if someone could share any knowledge they may have on this subject.</p>
  
  <p>Thanks in advance! :)</p>