public static IntPtr SetWindowHookByModule(IntPtr module, HOOKTYPE type, HOOKPROC callback) { return(NativeMethods.SetWindowsHookEx(type, callback, module, 0)); }
public static extern IntPtr SetWindowsHookEx(HOOKTYPE hookType, HOOKPROC lpfn, IntPtr hModule, uint dwThreadId);
public static IntPtr SetWindowHookByThreadId(uint threadId, HOOKTYPE type, HOOKPROC callback) { return(NativeMethods.SetWindowsHookEx(type, callback, IntPtr.Zero, threadId)); }
protected static extern IntPtr SetWindowsHookEx(HOOKTYPE idHook, HOOKPROC lpfn, IntPtr hMod, uint dwThreadId);
public static extern IntPtr SetWindowsHookEx(HOOKTYPE hookType, HOOKPROC lpfn, IntPtr hModule, uint dwThreadId);
public static IntPtr SetWindowHookByThreadId(uint threadId, HOOKTYPE type, HOOKPROC callback) { return NativeMethods.SetWindowsHookEx(type, callback, IntPtr.Zero, threadId); }
public static IntPtr SetWindowHookByModule(IntPtr module, HOOKTYPE type, HOOKPROC callback) { return NativeMethods.SetWindowsHookEx(type, callback, module, 0); }