how to find where a mouse event come from?
问题 Is there any way to figure out where did a mouse event come from? I mean, if I code a C/C++ program on Windows, and get a mouse click event on it, how can I find if this event come from a mouse driver, a touchpad, or if it was send by an application (mouse event simulation by sending appropriate message like WM_LBUTTONDOWN). Thanks for any help :) 回答1: This is not possible for an application in user mode - mouse events generally don't provide documented info on event source. There is the way