프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CallNextHook | int |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | System |
protected HookCallback ( int nCode, |
||
nCode | int | |
wParam | ||
lParam | ||
리턴 | int |
protected abstract ProcessCallback ( int wParam, |
||
wParam | int | |
lParam | ||
리턴 | bool |
public Replace ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : void | ||
hooker | MouseKeyboardActivityMonitor.WinApi.Hooker | An AppHooker or GlobalHooker object. |
리턴 | void |