Esempio n. 1
0
 internal WindowEventHook(SyncHookFactory syncHookFactory)
 {
     if (_seh == null)
     {
         _seh = new ShellEventHook(syncHookFactory.GetHandle());
         _seh.WindowCreated   += WindowCreatedEvent;
         _seh.WindowDestroyed += WindowDestroyedEvent;
         _seh.WindowActivated += WindowActivatedEvent;
     }
 }
Esempio n. 2
0
 internal void Destroy()
 {
     _seh = null;
 }
Esempio n. 3
0
 private void WindowActivatedEvent(ShellEventHook shellObject, IntPtr hWnd)
 {
     WindowActivated?.Invoke(shellObject, hWnd);
 }