Home > Back-end >  Use the SetWindowsHookEx computer card dead, strives for the truth
Use the SetWindowsHookEx computer card dead, strives for the truth

Time:10-14

In c + + Builder:

HOOKPROC JournalLogProc (int iCode, WPARAM WPARAM, LPARAM LPARAM)
{
If (iCode<0) return (HOOKPROC) CallNextHookEx (g_hLogHook, iCode wParam, lParam);
Return (HOOKPROC) CallNextHookEx (g_hLogHook, iCode wParam, lParam);
}

For the Click code:
If (g_hLogHook==NULL)
G_hLogHook=SetWindowsHookEx (WH_JOURNALRECORD, HOOKPROC JournalLogProc,
HInstance, 0);//installation log hook

Feign death phenomenon in a system, press Ctrl + Alt + Del to open the task manager lifted,

CodePudding user response:

No other code? JournalLogProc you didn't do anything?
  • Related