示例#1
0
 public WinEventHooker(int threadId, int hwnd)
 {
     this._instHookHandles    = new List <int>();
     this._threadId           = threadId;
     this._hwnd               = hwnd;
     this.DlgWinEventCallback = new WinApiLocal.WinEventDelegate(this.WinEventStatic);
     DispatcherEx.xBeginInvoke(new Action(this.InitHooks));
 }
示例#2
0
 static WinEventHooker()
 {
     DlgWinEventStaticCallback = new WinApiLocal.WinEventDelegate(WinEventStaticCallback);
     _hwndDesc = new Dictionary <int, string>();
     DispatcherEx.xBeginInvoke(delegate
     {
         SetWinEventHook();
     });
 }