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?