キーボードの状態を表す。
Exemplo n.º 1
0
		private int CallNextHook(int code, KeyboardMessage message, ref KeyboardState state) 
        {
			if (code >= 0) 
            {
				KeyboardHookedEventArgs e = new KeyboardHookedEventArgs(message, ref state);
				OnKeyboardHooked(e);
				if (e.Cancel) 
                {
					return -1;
				}
			}
			return CallNextHookEx(IntPtr.Zero, code, message, ref state);
		}
Exemplo n.º 2
0
		private static extern int CallNextHookEx(IntPtr hook, int code, KeyboardMessage message, ref KeyboardState state);
Exemplo n.º 3
0
		///<summary>新しいインスタンスを作成する。</summary>
		internal KeyboardHookedEventArgs(KeyboardMessage message, ref KeyboardState state) {
			this.message = message;
			this.state = state;
		}