Thema: Delphi Probleme mit WinAmp Hook

Einzelnen Beitrag anzeigen

Benutzerbild von LoCrux
LoCrux

Registriert seit: 5. Mär 2007
Ort: Gwang-Yang-City
48 Beiträge
 
Delphi 2009 Enterprise
 
#7

Re: Probleme mit WinAmp Hook

  Alt 16. Mai 2008, 00:41
@Wotan

Zitat von Wotan:
Wenn ich mich nicht täusche musst du bei SetWindowsHookEx beim 3.Parameter HInstance (wenn sich dein Quelltext in einer DLL befindet) übergeben, sonst weiß er nicht in welchem Modul sich deine Funktion befindet. Ich kann mich aber auch irren.
Du irrst dich nicht , meine Hook-Proc liegt alledings im aufrufenden Process.

Zitat von MSDN:
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.
Also daran liegts nicht...

EDIT:

P.S.:
Ich werde auf die Bass.dll wechseln. Wuerde aber trotzdem gerne wissen, warum der Hook nicht hakt
“C++ is an insult to the human brain.” [Niklaus Wirth]

2B OR NOT 2B (.. THAT IS FF)
  Mit Zitat antworten Zitat