C++ Mouse Wheel Detector

Job ID: 33885306

Budget: $10 – $30 USD

I am looking for a c++ code that will allow me to detect a mouse wheel event (when the user uses his mouse wheel) in a different window than my own window (not globally, I need to detect it in a specific window). I need you to use the following approach baseline:

DWORD threadId = GetWindowThreadProcessId(msfshWnd, NULL);
MouseHook = SetWindowsHookEx(WH_MOUSE, MouseHookCallback, GetModuleHandleW(NULL), threadId);

This is something that I have tried already, and it works only when I use WH_MOUSE_LL or with my own thread. However, I need to detect the mouse wheel on a specific window (and not globally with WH_MOUSE_LL , but specific window with WH_MOUSE), which is not mine, and I cannot make it work, I think I am missing something around DLL injection area.

The outcome should be a working example.
Related categories: C# Programming C++ Programming