Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find out who called SendMessage?

I'm attempting to debug a problem with my Windows installation. The details don't particularly matter, but I'm looking for the answer to the following question:

explorer.exe receives a WM_SETTINGCHANGE message. In WinDbg, I can break at the appropriate WndProc. How do I find out who sent the message? That is: is there any way to trace this back to the process that called SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, ...)?

like image 442
Roger Lipscombe Avatar asked Nov 14 '22 05:11

Roger Lipscombe


1 Answers

Windows messages are anonymous. Your calling app has no way to determine where they come from unless the message defines some way to identify the sender (which would be easily faked)

like image 158
Deanna Avatar answered Dec 10 '22 04:12

Deanna