title: How to add event hook for mouse operations in c++ win32?
body: <p>I wanted to add a system foreground event hook to track the active window and track mouse clicks(right-click) within the active window. I add <code>eventHook</code> for <code>EVENT_SYSTEM_FOREGROUND</code>, which is working as expected, my hook:</p>
  <pre><code>HWINEVENTHOOK hHook = SetWinEventHook (EVENT_SYSTEM_FOREGROUND, EVENT_SYSTEM_FOREGROUND,
      NULL, MyEventHandler, 0, 0, WINEVENT_OUTOFCONTEXT | WINEVENT_SKIPOWNPROCESS);
  </code></pre>
  <p>where <code>MyEventHandler</code> is</p>
  <pre><code>void CALLBACK MyEventHandler (
    HWINEVENTHOOK hWinEventHook,
    DWORD event,
    HWND hwnd,
    LONG idObject,
    LONG idChild,
    DWORD idEventThread,
    DWORD dwmsEventTime
  )
  { ... }
  </code></pre>
  <p>How to add a mouse event handler to track mouse operations like right click?</p>