/// <summary> /// Unsubscribes from the hook and stops firing events. /// </summary> /// <exception cref="System.ComponentModel.Win32Exception"></exception> public void Stop() { try { m_Hooker.Unsubscribe(HookHandle); } finally { HookCallbackReferenceKeeper = null; HookHandle = 0; } }