global hook monitoring for wm_app message
I'm trying to monitor my bluetooth stack for AVRCP messages.
Using SPY I found the corresponding messages for the buttons, for example:
Next Track:
0x00008001 (WM_APP+1)
WPARAM: 0000004A
So far, so good, I started reading about hooks. I was able to get the mouse/keyboard hooks to work using:
hMouseHook = Win32.SetWindowsHookEx( _
Win32.WH.WH_MOUSE_LL, _
MouseHookProcedure, _
thisModulePointer, _
0)
However, as I don't much care about the keyboard and the mouse I tried with WM_APP. As you may have guessed, it didn't work! :)
So there goes my question: Is there a way to capture flying WM_APP messages?
PS. Don't ask me how I'm gonna implement this into CF :lol:
Re: global hook monitoring for wm_app message
Moeur made a great dll for that. WM is not that different than Desktop so it might just work. If not you need someone with c++ knowledge to edit it a bit.