예제 #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();
     });
 }
예제 #3
0
 public static extern int SetWinEventHook(EventTypeEnum eventMin, EventTypeEnum eventMax, int hmodWinEventProc, WinApiLocal.WinEventDelegate pfnWinEventProc, int idProcess, int idThread, uint dwFlags);