private void ReleaseHook() { if (!_isHooked) { return; } LLMouseHook.UnHook(); LLKeyboardHook.UnHook(); ClearHooksFromFile(); _isHooked = false; }
private void ClearExistingHook() { long val; if (Int64.TryParse(Config.HookPtr1, out val)) { LLMouseHook.UnHook(val); } if (Int64.TryParse(Config.HookPtr2, out val)) { LLKeyboardHook.UnHook(val); } }