Esempio n. 1
0
 internal virtual void SetHook(int hookId, StUtil.Native.Internal.NativeCallbacks.HookProc callback)
 {
     hHook = SetHookInternal(hookId, callback);
     if (hHook.ToInt32() == 0)
     {
         throw new System.ComponentModel.Win32Exception();
     }
 }
Esempio n. 2
0
 protected override IntPtr SetHookInternal(int hookId, StUtil.Native.Internal.NativeCallbacks.HookProc callback)
 {
     return(StUtil.Native.Internal.NativeMethods.SetWindowsHookEx(
                hookId,
                callback,
                Process.GetCurrentProcess().MainModule.BaseAddress,
                0));
 }
Esempio n. 3
0
 protected abstract IntPtr SetHookInternal(int hookId, StUtil.Native.Internal.NativeCallbacks.HookProc callback);