[This is preliminary documentation and is subject to change.]
The Win32Hook type exposes the following members.
Constructors
Methods
| Name | Description | |
|---|---|---|
| CallNextHook | The CallNextHookEx function passes the hook information to the next hook procedure in the current hook chain. A hook procedure can call this function either before or after processing the hook information. | |
| Dispose()()()() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Dispose(Boolean) | Implements Dispose()()()() | |
| GetModuleHandle | If implemented in derived class gets module handle pased to hMod parameter of SetWindowsHookEx Win32 API function | |
| GetModuleHandleFromType | Gets module handle for given type | |
| HookProc | Hook handler procedure. Caled when hook event occures | |
| RegisterAsyncHook | Registers a low-level keyboard hook on curent thread. The thread will be exited when hook is unregistered. | |
| RegisterHook | Registers a low-level keyboard hook, so keyboard events are obtained by this class. | |
| UnregisterHook | Unregisters registered hook for this instance |
Properties
| Name | Description | |
|---|---|---|
| HandledHookType | If overriden in derived class gets type of hook represented by derived class | |
| HookHandle | Gets handle of current hook if it is registered | |
| IsAsync | Gets value indicating if hook events occur on different thread than hook was registered. | |
| IsDisposed | Gets value indicating if this instance was already disposed | |
| Registered | Gets value indicating if hook is registered for this instance |
Events
| Name | Description | |
|---|---|---|
| Disposed | Raised when object is disposed |