BOOL SetHook(DWORD dwThreadID, DWORD dwProcID) { if (0 == dwThreadID) { return FALSE; } g_dwTarProcId = dwProcID; g_hHook = SetWindowsHookEx(WH_GETMESSAGE, GetMsgProc, 0, dwThreadID); return g_hHook != NULL; }
g_hHook
NULL
GetMsgProc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)