hook setzen
-
Also ich habe einen Hook auf mein eigenen prozess gesetzt hat auch alles gefunzt!!
Aber wenn ich jetzt versuche den hook auf einen anderen prozess zusetzen bekomm ich immer GetLastError=87/Falscher Parameter ABER DIE PID STIMMT.... case DLL_PROCESS_ATTACH : hDllInstance = hInstance ; break ; .... PID=GetWindowThreadProcessId(hWindow,0); //DAMIT SUCH ICH DIE PID hhkHook=SetWindowsHookEx(WH_GETMESSAGE,KeyboardHookProc,(HINSTANCE)hDllInstance,PID) ;
-
Woher bekommst du hWindow?
-
hWindow=FindWindow(NULL,"Prozess");//DES WIRD GEFUNDEN