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); }
public static extern int SetWindowsHookEx(int idHook, Vip72Handle.HookProc lpfn, IntPtr hInstance, int threadId);