Esempio n. 1
0
        private void SetHook(EventTypeEnum eventMin, EventTypeEnum eventMax = EventTypeEnum.Unknown)
        {
            if (eventMax == EventTypeEnum.Unknown)
            {
                eventMax = eventMin;
            }
            int item = WinApiLocal.SetWinEventHook(eventMin, eventMax, 0, this.DlgWinEventCallback, 0, this._threadId, 0u);

            this._instHookHandles.Add(item);
        }
Esempio n. 2
0
 private static void SetWinEventHook()
 {
     WinApiLocal.SetWinEventHook(EventTypeEnum.EVENT_SYSTEM_FOREGROUND, EventTypeEnum.EVENT_SYSTEM_FOREGROUND, 0, DlgWinEventStaticCallback, 0, 0, 0u);
 }