public override void StopSystem() { #if LOCAL_DEBUG SSWindowsFunctions.UnhookWindowsHookEx(_hhook); if (_mouseHookThread != null) { SSWindowsFunctions.PostThreadMessage(_mouseHookThreadId, 0, UIntPtr.Zero, IntPtr.Zero); _mouseHookThread = null; _mouseHookThreadId = 0; } #endif InteractionManager.GetCommand <SSSelectionRegionProvider>().Unsubscribe(_selctionAreaToken); }
private void ReleaseHook() { Contract.Requires(_hhook != IntPtr.Zero); SSWindowsFunctions.UnhookWindowsHookEx(_hhook); }