title: Send windows message to a Windows Service
body: <p>Is there any tool to send (mimic) a windows message like 'WM_ENDSESSION' to a windows service?</p>
  
  <p>OR</p>
  
  <p>How can I send a windows message to a process using C#?</p>
  
  <p>(I know only C#)</p>
  
  <p>EDIT: Purpose: Basically I have to debug a windows service for fixing a bug that occurs only on system shut down.</p>