public static void UninstallHook() { if (WKBHookInstance != null) { NativeImport.UnhookWindowsHookEx(WKBHookInstance); Logger.Log("Uninstalled Keyboard hook."); } }
public void UninstallHooks() { NativeImport.UnhookWindowsHookEx(wMSHookInstance); NativeImport.UnhookWindowsHookEx(wKBHookInstance); }