Questions about the DLL injection!
Use the SetWindowsHookEx thread for the global injection
But I don't find any process into success
is a function of I call wrong, or other problems? O great god answer The following is the code
LRESULT CALLBACK CBTProc (int nCode, WPARAM WPARAM, LPARAM LPARAM) {
Return CallNextHookEx (m_hook, nCode wParam, lParam);
}
GAME_API void SetHook ()
{
UpdataToken ();
M_hook=SetWindowsHookEx (WH_CBT CBTProc, GetModuleHandle (L "Game. DLL"), 0).
}
CodePudding user response:
Where're the BBS Daniel ah ~ ~ ~ ~ ~
CodePudding user response:
Look at what mhook value is 1, debugging
2, call getlasterror see return values
CodePudding user response: