Forum: Win32/Win64 API (native code)
Delphi
by 4dk2,
11. Mai 2010
Hab die Lösung.
scheint sehr kompliziert zu sein unter Delphi das zu instanzieren.
hier noch eine lösung mit csarp, wo es sehr einfach scheint.
public class KeyHook
{
private delegate int HookProc(int nCode, IntPtr wParam, IntPtr lParam);
Forum: Win32/Win64 API (native code)
Delphi
by 4dk2,
10. Mai 2010
Hallo,
Wieder mal eine Frage zu Hooks :)
Mein Problem ist das ich eine Komponente machen will die einen Hook beinhaltet.
Problem dabei ist das ich die Hookfunktion nicht übergeben kann:
SetWindowsHookEx bekommt normalerweise so
HandleA := SetWindowsHookEx(WH_KEYBOARD,@Funcktion,HInstance,GetCurrentThreadId());