|
|
|
Public Member Functions | |
| UserActivityHook () | |
| Default constructor - starts hooks automatically. | |
| delegate int | HookProc (int nCode, Int32 wParam, IntPtr lParam) |
| HookProc. | |
| static int | SetWindowsHookEx (int idHook, HookProc lpfn, IntPtr hInstance, int threadId) |
| Import for SetWindowsHookEx function. Use this function to install a hook. | |
| static bool | UnhookWindowsHookEx (int idHook) |
| Import for UnhookWindowsHookEx. Call this function to uninstall the hook. | |
| static int | CallNextHookEx (int idHook, int nCode, Int32 wParam, IntPtr lParam) |
| Import for CallNextHookEx. Use this function to pass the hook information to next hook procedure in chain. | |
| void | StartMouseHook () |
| StartMouseHook. | |
| void | StartKeyHook () |
| StartKeyHook. | |
| void | StopMouseHook () |
| StopMouseHook. | |
| void | StopKeyHook () |
| StopKeyHook. | |
| static int | ToAscii (int uVirtKey, int uScanCode, byte[] lpbKeyState, byte[] lpwTransKey, int fuState) |
| The ToAscii function translates the specified virtual-key code and keyboard state to the corresponding character or characters. The function translates the code using the input language and physical keyboard layout identified by the keyboard layout handle. | |
| static int | GetKeyboardState (byte[] pbKeyState) |
| The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer. | |
Public Attributes | |
| const int | WH_MOUSE_LL = 14 |
| WH_MOUSE_LL. | |
| const int | WH_KEYBOARD_LL = 13 |
| WH_KEYBOARD_LL. | |
| int | LastScanCode = 0 |
| Scancode for last key pressed. | |
Events | |
| MouseEventHandler | MouseDown |
| MouseDown. | |
| MouseEventHandler | MouseUp |
| MouseUp. | |
| MouseEventHandler | MouseMove |
| MouseMove. | |
| MouseEventHandler | DoubleClick |
| DoubleClick. | |
| KeyEventHandler | KeyDown |
| KeyDown. | |
| KeyPressEventHandler | KeyPress |
| KeyPress. | |
| KeyEventHandler | KeyUp |
| KeyUp. | |
Classes | |
| class | KeyboardHookStruct |
| KeyboardHookStruct. More... | |
| class | MouseHookStruct |
| MouseHookStruct. More... | |
| class | POINT |
| POINT. More... | |
| GlobalHook.UserActivityHook.UserActivityHook | ( | ) |
Default constructor - starts hooks automatically.
| delegate int GlobalHook.UserActivityHook.HookProc | ( | int | nCode, | |
| Int32 | wParam, | |||
| IntPtr | lParam | |||
| ) |
HookProc.
| static int GlobalHook.UserActivityHook.SetWindowsHookEx | ( | int | idHook, | |
| HookProc | lpfn, | |||
| IntPtr | hInstance, | |||
| int | threadId | |||
| ) |
Import for SetWindowsHookEx function. Use this function to install a hook.
| static bool GlobalHook.UserActivityHook.UnhookWindowsHookEx | ( | int | idHook | ) |
Import for UnhookWindowsHookEx. Call this function to uninstall the hook.
| static int GlobalHook.UserActivityHook.CallNextHookEx | ( | int | idHook, | |
| int | nCode, | |||
| Int32 | wParam, | |||
| IntPtr | lParam | |||
| ) |
Import for CallNextHookEx. Use this function to pass the hook information to next hook procedure in chain.
| void GlobalHook.UserActivityHook.StartMouseHook | ( | ) |
StartMouseHook.
| void GlobalHook.UserActivityHook.StartKeyHook | ( | ) |
StartKeyHook.
| void GlobalHook.UserActivityHook.StopMouseHook | ( | ) |
StopMouseHook.
| void GlobalHook.UserActivityHook.StopKeyHook | ( | ) |
StopKeyHook.
| static int GlobalHook.UserActivityHook.ToAscii | ( | int | uVirtKey, | |
| int | uScanCode, | |||
| byte[] | lpbKeyState, | |||
| byte[] | lpwTransKey, | |||
| int | fuState | |||
| ) |
The ToAscii function translates the specified virtual-key code and keyboard state to the corresponding character or characters. The function translates the code using the input language and physical keyboard layout identified by the keyboard layout handle.
| static int GlobalHook.UserActivityHook.GetKeyboardState | ( | byte[] | pbKeyState | ) |
The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer.
| const int GlobalHook.UserActivityHook.WH_MOUSE_LL = 14 |
WH_MOUSE_LL.
| const int GlobalHook.UserActivityHook.WH_KEYBOARD_LL = 13 |
WH_KEYBOARD_LL.
Scancode for last key pressed.
| MouseEventHandler GlobalHook.UserActivityHook.MouseDown |
MouseDown.
| MouseEventHandler GlobalHook.UserActivityHook.MouseUp |
MouseUp.
| MouseEventHandler GlobalHook.UserActivityHook.MouseMove |
MouseMove.
| MouseEventHandler GlobalHook.UserActivityHook.DoubleClick |
DoubleClick.
| KeyEventHandler GlobalHook.UserActivityHook.KeyDown |
KeyDown.
| KeyPressEventHandler GlobalHook.UserActivityHook.KeyPress |
KeyPress.
| KeyEventHandler GlobalHook.UserActivityHook.KeyUp |
KeyUp.
| Copyright © 2008 Flux Media, Inc. (U.S. Copyright Registration Number: TXu-1-239-794) |
|