title: Capture key events from a Windows Service in C#
body: <p>I have to write an application in C# that listens to any keys being pressed.  In actuality I have a bar code scanner sending the "key pressed" event, and I need to listen it... what it does from there is beyond the scope of my question.</p>
  
  <p>My security requirements are that there is <strong>not allowed to be any sign-on</strong> to the machine in any way shape or form AND <strong>this must run as a windows service</strong>.  The user will start the machine and walk away (i.e., no desktop session).</p>
  
  <p>I'm assuming I'm going to have to go unmanaged for this.</p>
  
  <p>Given the security requirements is this even possible?  If so, any pointers on where to start would be great.</p>
  
  <p>Thanks in advance,
  Jay</p>