Exemplo n.º 1
0
 private void _wHookEventRaised(object sender, WindowEventArgs e)
 {
     _activeWindow = e.hWnd;
     e.ExePath = string.IsNullOrEmpty(e.ExePath) ? "LockScreen" : e.ExePath;
     if (_windowEvents.ContainsKey(e.ExePath))
         _windowEvents[e.ExePath] += 1;
     else
         _windowEvents.Add(e.ExePath, 1);
 }
Exemplo n.º 2
0
 private void OnEventRaised(WindowEventArgs e)
 {
     if (EventRaised != null)
         EventRaised(this, e);
 }
Exemplo n.º 3
0
 private void _wHookEventRaised(object sender, WindowEventArgs e)
 {
     _activeWindow = e.hWnd;
     if (_windowEvents.ContainsKey(e.ExePath))
         _windowEvents[e.ExePath] += 1;
     else
         _windowEvents.Add(e.ExePath, 1);
 }