Exemple #1
0
 public SystemForegroundTitleListener()
 {
     _HandleSystemForegroundEvent = HandleSystemForegroundEvent;
     _HandleObjectNamechangeEvent = HandleObjectNamechangeEvent;
     Refs.Set(ref hFocusedApplicationEvent,
              SetWinEventHook(Api.EVENT_SYSTEM_FOREGROUND, _HandleSystemForegroundEvent));
 }
Exemple #2
0
 internal static SafeHandle SetWinEventHook(uint eventId, uint processId, uint threadId, Api.WinEventDelegate winEventDelegate)
 {
     return(Api.SetWinEventHook(eventId, eventId, IntPtr.Zero, winEventDelegate, processId, threadId, Api.WINEVENT_OUTOFCONTEXT));
 }
Exemple #3
0
 internal static SafeHandle SetWinEventHook(uint eventId, Api.WinEventDelegate winEventDelegate)
 {
     return(SetWinEventHook(eventId, 0, 0, winEventDelegate));
 }