示例#1
0
 protected override IntPtr SetHookInternal(int hookId, NativeCallbacks.HookProc callback)
 {
     return NativeMethods.SetWindowsHookEx(
         hookId,
         callback,
         IntPtr.Zero,
         (uint)NativeMethods.GetCurrentThreadId());
 }
示例#2
0
 public static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, NativeCallbacks.MessageProc newProc);
示例#3
0
 public static extern bool EnumWindows(NativeCallbacks.EnumWindowsProc lpEnumFunc, IntPtr lParam);
示例#4
0
 public static extern IntPtr SetWindowsHookEx(int idHook, NativeCallbacks.HookProc lpfn, IntPtr hMod, uint dwThreadId);
示例#5
0
 public static extern bool EnumChildWindows(IntPtr hWndParent, NativeCallbacks.EnumWindowsProc lpEnumFunc, IntPtr lParam);