Свойство | Type | Description | |
---|---|---|---|
CallNextHook | int |
Méthode | Description | |
---|---|---|
Dispose ( ) : void |
Release delegates, unsubscribes from hooks.
|
|
Replace ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : void |
Enables you to switch from application hooks to global hooks and vice versa on the fly without unsubscribing from events. Component remains enabled or disabled state after this call as it was before.
|
|
Start ( ) : void |
Subscribes to the hook and starts firing events.
|
|
Stop ( ) : void |
Unsubscribes from the hook and stops firing events.
|
Méthode | Description | |
---|---|---|
BaseHookListener ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : System |
Base constructor of BaseHookListener Hooks are not active after instantiation. You need to use either BaseHookListener.Enabled property or call BaseHookListener.Start method. |
|
Dispose ( bool isDisposing ) : void |
Method to be used from Dispose and finalizer. Override this method to release subclass sepcific references.
|
|
GetHookId ( ) : int |
Override to deliver correct id to be used for HookNativeMethods.SetWindowsHookEx call.
|
|
HookCallback ( int nCode, |
A callback function which will be called every time a keyboard or mouse activity detected. WinApi.HookCallback
|
|
ProcessCallback ( int wParam, |
Override this method to modify logic of firing events.
|
Méthode | Description | |
---|---|---|
CallNextHook ( int nCode, int wParam, |
protected BaseHookListener ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : System | ||
hooker | MouseKeyboardActivityMonitor.WinApi.Hooker | Depending on this parameter the listener hooks either application or global keyboard events. |
Résultat | System |
protected Dispose ( bool isDisposing ) : void | ||
isDisposing | bool | |
Résultat | void |
protected HookCallback ( int nCode, |
||
nCode | int | |
wParam | ||
lParam | ||
Résultat | int |
protected abstract ProcessCallback ( int wParam, |
||
wParam | int | |
lParam | ||
Résultat | bool |
public Replace ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : void | ||
hooker | MouseKeyboardActivityMonitor.WinApi.Hooker | An AppHooker or GlobalHooker object. |
Résultat | void |