コード例 #1
0
ファイル: Vip72Handle.cs プロジェクト: thankhuong/AutoLeadGUI
 public bool startEventListener()
 {
     this.statusHandle         = this.GetWindowHandle(Vip72Handle.Vip72Window.Status);
     this.SetTextHookProcedure = new Vip72Handle.HookProc(this.SetTextHookProc);
     Vip72Handle.hHook         = Vip72Handle.SetWindowsHookEx(3, this.SetTextHookProcedure, IntPtr.Zero, Vip72Handle.GetCurrentThreadId());
     return((uint)Vip72Handle.hHook > 0U);
 }
コード例 #2
0
ファイル: Vip72Handle.cs プロジェクト: thankhuong/AutoLeadGUI
 public static extern int SetWindowsHookEx(int idHook, Vip72Handle.HookProc lpfn, IntPtr hInstance, int threadId);