private static int Hook(int code, EventType eventType, ref KeyboardHookParam lParam)
        {
            if (code < 0 || eventType != EventType.Keydown)
            {
                return(CallNextHookEx(IntPtr.Zero, code, eventType, ref lParam));
            }

            if (lParam.KeyCode == KeyCode.WinKey)
            {
                return(-1);
            }

            return(CallNextHookEx(IntPtr.Zero, code, eventType, ref lParam));
        }
 private static extern int CallNextHookEx(IntPtr hhk, int nCode, EventType wParam, ref KeyboardHookParam lParam);