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(); }
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(); }
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(); } }
public void Dispose() { if (IsInitialized) { CairoLogger.Instance.Debug("TasksService: Deregistering hooks"); DeregisterShellHookWindow(_HookWin.Handle); if (uncloakEventHook != IntPtr.Zero) { UnhookWinEvent(uncloakEventHook); } _HookWin.DestroyHandle(); } TaskCategoryProvider?.Dispose(); }