C# Class Tsukikage.WindowsUtil.KeyboardHook

Keyboard Hook :) If any event handler returns true, the input will be canceled ;) - 簡単キーボードフック。いずれかのイベントハンドラがtrueを返すと、そのキーボードイベントは握りつぶされる。
Inheritance: IDisposable
Datei anzeigen Open project: ttsuki/ttsuki Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GenerateKeyboardEvent ( Keys keyCode, bool keyDown ) : void
KeyboardHook ( ) : System
KeyboardHook ( bool subthreaded ) : System

Private Methods

Method Description
CallNextHookEx ( IntPtr hook, int code, IntPtr wParam, KBDLLHOOKSTRUCT &lParam ) : int
InstallHook ( ) : void
InstallHookThreaded ( ) : void
ProcessKeyboardEvent ( int code, IntPtr wParam, KBDLLHOOKSTRUCT &lParam ) : int
SetWindowsHookEx ( int hookType, LowLevelKeyboardProc hookDelegate, IntPtr hInstance, uint threadId ) : IntPtr
UnhookWindowsHookEx ( IntPtr hook ) : bool
UninstallHook ( ) : void
UninstallHookThreaded ( ) : void
keybd_event ( byte bVk, byte bScan, int dwFlags, IntPtr dwExtraInfo ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GenerateKeyboardEvent() public static method

public static GenerateKeyboardEvent ( Keys keyCode, bool keyDown ) : void
keyCode Keys
keyDown bool
return void

KeyboardHook() public method

public KeyboardHook ( ) : System
return System

KeyboardHook() public method

public KeyboardHook ( bool subthreaded ) : System
subthreaded bool
return System