title: monitor user activities using c#
body: <p>I am developing an application, which monitor user activities. I need to know the login,logoff,lock and unlock time of each user. How can I fetch these informations from the local machine using C#. </p>
  
  <p>Please note: I am not asking first login and last logout time. I need the entire user activity including windows lock and unlock. then only I can find out the actual working hour. please let me know if there is any way to do this</p>