{
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