Пример #1
0
        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);
        }
Пример #2
0
 private void ReleaseHook()
 {
     Contract.Requires(_hhook != IntPtr.Zero);
     SSWindowsFunctions.UnhookWindowsHookEx(_hhook);
 }