Пример #1
0
 private static IntPtr SetWindowsHookEx(HookType code, HookProc func, IntPtr hInstance, int threadID)
 {
     if (Win32Helper.IsWindowsOS())
     {
         return(PInvoke.SetWindowsHookEx(code, func, hInstance, threadID));
     }
     else
     {
         return(IntPtr.Zero);;
     }
 }
Пример #2
0
 public LocalWindowsHook(HookType hook, HookProc func)
 {
     m_hookType   = hook;
     m_filterFunc = func;
 }
Пример #3
0
 // Class constructor(s)
 public LocalWindowsHook(HookType hook)
 {
     m_hookType   = hook;
     m_filterFunc = new HookProc(this.CoreHookProc);
 }