How can my app find the sender of a windows message?

There is no built-in way to find out who sent the window message, not even win32k keeps track of this; you might be able to find it out with a kernel debugger and a conditional breakpoint.

However, I would argue that you don’t really need this information; you need to make your app properly handle any message sent to it.

Leave a Comment