private bool IsKeyToggled(Keys key) { return(((int)NativeMethods.GetKeyState((int)key) & 1) == 1); }
private bool IsKeyDown(Keys key) { return(((uint)NativeMethods.GetKeyState((int)key) & 32768U) > 0U); }
private void DisableMouseClickThru() { NativeMethods.SetWindowLong(this.Handle, -20, (int)NativeMethods.GetWindowLong(this.Handle, -20) & -33); }
private void EnsureTopMost() { NativeMethods.SetWindowPos(this.Handle, NativeMethods.HWND_TOPMOST, 0, 0, 0, 0, 19U); }
private void EnableMouseClickThru() { NativeMethods.SetWindowLong(this.Handle, -20, NativeMethods.GetWindowLong(this.Handle, -20) | 32); }