Home > Back-end >  SetWindowsHookEx problem after injection
SetWindowsHookEx problem after injection

Time:09-17

If (code & gt;=0 & amp; & LParam & amp; 0 x80000000)
{
GetModuleFileName (NULL, szPath, MAX_PATH);
_wsplitpath (szPath, NULL, NULL, sProcessName, NULL);
GetKeyNameTextW (lParam keyItem, 50);
If (0==_wcsicmp (sProcessName, sRead))
{
MessageBox (NULL, L "is tackling input!" , L "intercept keyboard", NULL);
MessageBox (NULL, keyItem, L "intercept keyboard", NULL);
return 1;
}
}
Return CallNextHookEx (hHook, code, wParam, lParam);
This is my part of the keyboard hook callback function is responsible for the judgment, the problem is I can't intercept incoming messages, such as I press a button, the dialog box to pop up, but as a show on the window, how to solve this problem, please?

CodePudding user response:

Should be a function return value
  • Related