全局钩子HOOK不到SendNotifyMessage广播消息?
写了个全局钩子DLL,能够hook到BroadcastSystemMessage广播的消息, 但是换成SendNotifyMessage就不行:
gluMyMsgID = RegisterWindowMessage(WM_MY_MSG_STR);
::SendNotifyMessage(HWND_BROADCAST, gluMyMsgID, 0, 0);
MSDN讲:
If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.
SendNotifyMessage返回时成功的,如果在exe是能收到消息,不清楚为什么不能被hook到?请指教!