Home > OS >  Hook hooks in the program how to differentiate between mouse messages from application API calls or
Hook hooks in the program how to differentiate between mouse messages from application API calls or

Time:10-01

Hook hooks in the program how to differentiate between mouse messages from application API calls or external call?
A program, I have lived the hooks and can intercept the mouse and keyboard messages, but within the program with API calls the mouse, similar mouse_event, for the hook callback
LRESULT CallWndProc (int nCode,
WPARAM WPARAM,
LPARAM LPARAM
)

WParam return type is unable to distinguish between external use the mouse to produce or internal API calls, does anyone know how to distinguish the type?
  • Related