title: Need to disable mouse right click in Windows?
body: <p>I am creating a system tray app which monitors mouse clicks in Windows. I want to disable the right mouse click. My app is based on this <a href="http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx" rel="nofollow noreferrer">sample code</a>.</p>
  
  <p>In the HookCallback method, I tried to do this:</p>
  
  <pre><code>if ((MouseMessages)wParam == MouseMessages.WM_RBUTTONDOWN)
                      return (System.IntPtr)1;
  </code></pre>
  
  <p>thinking the mpuse event will be not be processed but the context menu of the right mouse click still shows up.</p>