gpt4 book ai didi

debugging - 如何找出谁调用了 SendMessage?

转载 作者:行者123 更新时间:2023-12-04 21:48:12 25 4
gpt4 key购买 nike

我正在尝试调试我的 Windows 安装问题。细节并不特别重要,但我正在寻找以下问题的答案:

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, ...)?

最佳答案

Windows 消息是匿名的。除非消息定义了某种方法来识别发件人(这很容易被伪造),否则您的调用应用程序无法确定它们的来源

关于debugging - 如何找出谁调用了 SendMessage?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10534322/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com