Forum: Win32/Win64 API (native code)
by Neutral General,
18. Jan 2011
Ja FHook ist 0. Hab auch eben FHook extra mal initialisiert, weil ich das auch schon vermutet hatte. Aber das ändert leider nichts :(
Forum: Win32/Win64 API (native code)
by Neutral General,
18. Jan 2011
Hallo,
Ja doch ich rufe CallNextHook dann gar nicht auf. Aber das Problem taucht ja irgendwie auch erst auf, wenn ich den Hook deinstallieren will.
Mein Code:
function HookProc(code: Integer; wParam: Cardinal; lParam: Cardinal): Cardinal; stdcall;
begin
if FHook <> 0 then
begin
Forum: Win32/Win64 API (native code)
by Neutral General,
18. Jan 2011
Auf meinem PC ist Windows Vista. Da tauchts auf und in meiner XP-VM auch. Wobei sich XP von dem Schock meistens besser erholt als Vista...
Forum: Win32/Win64 API (native code)
by Neutral General,
18. Jan 2011
Hab jetzt mal im HookProc um alles die Bedingung
if FHook <> 0 then
gesetzt. Und im UnInstallHook wurde ja auch eigentlich abgefragt ob FHook <> 0 ist.
So wirklich verstehe ich immer noch nicht warum beim UnInstallHook mein Windows so in die Knie geht, dass es manchmal sogar den Geist aufgibt :?