protected override HookHandle Subscribe()
 {
     return(HookHandle.Create(
                HookType.GlobalMouse,
                HookProcedure,
                System.Diagnostics.Process.GetCurrentProcess().MainModule.BaseAddress,
                0));
 }
예제 #2
0
 protected override HookHandle Subscribe()
 {
     return(HookHandle.Create(
                HookType.AppMouse,
                HookProcedure,
                IntPtr.Zero,
                ThreadNativeMethods.GetCurrentThreadId()));
 }