Vincent Fatica
2009-08-07 13:44:42 UTC
I do this to initialize a pair of INPUT structs used in a WH_MOUSE_LL HOOKPROC.
These initializations are never changed.
Global:
INPUT LeftClick[2] = { {INPUT_MOUSE, {0}}, {INPUT_MOUSE, {0}} };
Outside the HOOKPROC:
LeftClick[0].mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN;
LeftClick[1].mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTUP;
Can this be done inside the HOOKPROC with a single static declaration? If so,
how? Thanks.
These initializations are never changed.
Global:
INPUT LeftClick[2] = { {INPUT_MOUSE, {0}}, {INPUT_MOUSE, {0}} };
Outside the HOOKPROC:
LeftClick[0].mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN;
LeftClick[1].mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTUP;
Can this be done inside the HOOKPROC with a single static declaration? If so,
how? Thanks.
--
- Vince
- Vince