Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要拦截 SendMessage API 以防止有人通过发送 WM_GETTEXT 从特定窗口获取文本。所以请建议我如何做到这一点
最简单的解决方案是简单地将目标的窗口过程子类化HWND并丢弃WM_GETTEXT您自己不调用的任何消息。
HWND
WM_GETTEXT