コード例 #1
0
 public void Dispose()
 {
     Trace.WriteLine("Disposing of WindowsTasksService");
     DeregisterShellHookWindow(_HookWin.Handle);
     // May be contributing to #95
     //RegisterShellHook(_HookWin.Handle, 0);// 0 = RSH_UNREGISTER - this seems to be undocumented....
     _HookWin.DestroyHandle();
 }
コード例 #2
0
 public void Dispose()
 {
     CairoLogger.Instance.Debug("Disposing of WindowsTasksService");
     AppGrabber.AppGrabber.Instance.CategoryList.CategoryChanged -= CategoryList_CategoryChanged;
     DeregisterShellHookWindow(_HookWin.Handle);
     // May be contributing to #95
     //RegisterShellHook(_HookWin.Handle, 0);// 0 = RSH_UNREGISTER - this seems to be undocumented....
     _HookWin.DestroyHandle();
 }
コード例 #3
0
 public void Dispose()
 {
     if (isInitialized)
     {
         CairoLogger.Instance.Debug("TasksService: Deregistering hooks");
         AppGrabber.AppGrabber.Instance.CategoryList.CategoryChanged -= CategoryList_CategoryChanged;
         DeregisterShellHookWindow(_HookWin.Handle);
         if (uncloakEventHook != IntPtr.Zero)
         {
             UnhookWinEvent(uncloakEventHook);
         }
         _HookWin.DestroyHandle();
     }
 }
コード例 #4
0
ファイル: TasksService.cs プロジェクト: rglamazda/cairoshell
        public void Dispose()
        {
            if (IsInitialized)
            {
                CairoLogger.Instance.Debug("TasksService: Deregistering hooks");
                DeregisterShellHookWindow(_HookWin.Handle);
                if (uncloakEventHook != IntPtr.Zero)
                {
                    UnhookWinEvent(uncloakEventHook);
                }
                _HookWin.DestroyHandle();
            }

            TaskCategoryProvider?.Dispose();
        }