title: How to capture mouse windows messages out of the application?
body: <p>First of all sorry 'cause maybe this could be a too localized question for <code>C#</code> but anyways I didn't find info about this for <code>VB.NET</code> and I don't understand in a good level <code>C#</code> code.</p>
  
  <p>Basically I need to capture/process some mouse messages out of the application.</p>
  
  <p>How I could do it?</p>
  
  <p>This is just a code example of what I need to reproduce but outside the application:</p>
  
  <pre><code>Protected Overrides Sub WndProc(ByRef m As Message)
  
      Select Case m.Msg
  
          Case &amp;H200 ' WM_MOUSEMOVE
              MsgBox("Mouse Move")
  
          Case &amp;H201 ' WM_LBUTTONDOWN
              MsgBox("Left Button Down")
  
          Case &amp;H202 ' WM_LBUTTONUP 
              MsgBox("Left Button Up")
  
          Case Else
              MyBase.WndProc(m)
  
      End Select
  
  End Sub
  </code></pre>
  
  <p>The main idea is to press a button that will hide the application to let the user selects a region over the screen and there is where I need to capture those windows messages to know when I need to start/end the region selection.</p>