I misunderstood your problem.

Here you will not receive wParam for WM_MOUSEWHEEL notification.

lparam->MOUSEHOOKSTRUCT will contain the handle to window which will receive the mouse message corresponding to the mouse event.

u cant pass function as a parameter.

if u want to do so then create function pointer pass it to another function and then call fuction using that pointer.

void my_int_func(int x)
printf( "%d\n", x );

int main()
void (foo)(int);
the ampersand is actually optional */
foo = &my_int_func;
// call ur function, pass foo as parameter and call simply like foo(2);
return 0;

Nick Evan commented: 36 posts and still no code tags... -5