Einzelnen Beitrag anzeigen

helgew

Registriert seit: 30. Jul 2008
125 Beiträge
 
#2

Re: Mousehook friert alles ein

  Alt 31. Jul 2008, 11:49
Du solltest die nächste Callback-Proc vielleicht nach deinem code aufrufen. Bei SetWindowsHookEX sollte auch nicht wParam sondern 0 stehen:

Zitat:
hMod
[in] Handle to the DLL containing the hook procedure pointed to by the lpfn parameter. The hMod parameter must be set to NULL if the dwThreadId parameter specifies a thread created by the current process and if the hook procedure is within the code associated with the current process.
Konsequenz: Wenn du einen Globalen Hook willst, musst du die CallbackProc in eine DLL auslagern und das durch LoadLibrary zurückgegebenen Modulhandle verwenden ( Kommunikation des DLL-Codes mit dem Programm geht dann über Message Broadcast, Pipes oder DDE.. wie du willst )
  Mit Zitat antworten Zitat