Arik Niceberg
October 28th, 1999, 09:07 AM
Hi !
I need to set a message hook to another application.
My HookProc is sitting in a Dll, and look like this:
int FAR PASCAL MsgFilterFunc (int nCode, WORD wParam, DWORD lParam )
Then I pass it to SetWindoshookEx:
hhookMsgFilterHook = SetWindowsHookEx (WH_MSGFILTER, MsgFilterFunc, hInstance, 0);
The compiling error that I get is:
SetWindowsHookEx : cannot convert parameter 2 from 'long' to 'long (__stdcall *)(int,unsigned int,long)'
Please, someone?!
I need to set a message hook to another application.
My HookProc is sitting in a Dll, and look like this:
int FAR PASCAL MsgFilterFunc (int nCode, WORD wParam, DWORD lParam )
Then I pass it to SetWindoshookEx:
hhookMsgFilterHook = SetWindowsHookEx (WH_MSGFILTER, MsgFilterFunc, hInstance, 0);
The compiling error that I get is:
SetWindowsHookEx : cannot convert parameter 2 from 'long' to 'long (__stdcall *)(int,unsigned int,long)'
Please, someone?!