问题
I have a window, and I am looking at the messages that are being sent to it using Spy++. Is it possible to determine which process sent my window a given message, if it indeed was sent from another process?
回答1:
No, Win32 window messages do not contain information about where they were sent from (unless that information is specifically included as part of the message WPARAM and/or LPARAM components).
来源:https://stackoverflow.com/questions/9185269/can-i-determine-which-process-sent-my-window-a-message