[This is preliminary documentation and is subject to change.]

The Win32Hook type exposes the following members.

Constructors

  NameDescription
Protected methodWin32Hook
Initializes a new instance of the Win32Hook class

Methods

  NameDescription
Protected methodCallNextHook
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.
Public methodDispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Implements Dispose()()()()
Protected methodGetModuleHandle
If implemented in derived class gets module handle pased to hMod parameter of SetWindowsHookEx Win32 API function
Protected methodStatic memberGetModuleHandleFromType
Gets module handle for given type
Protected methodHookProc
Hook handler procedure. Caled when hook event occures
Public methodRegisterAsyncHook
Registers a low-level keyboard hook on curent thread. The thread will be exited when hook is unregistered.
Public methodRegisterHook
Registers a low-level keyboard hook, so keyboard events are obtained by this class.
Public methodUnregisterHook
Unregisters registered hook for this instance

Properties

  NameDescription
Protected propertyHandledHookType
If overriden in derived class gets type of hook represented by derived class
Protected propertyHookHandle
Gets handle of current hook if it is registered
Public propertyIsAsync
Gets value indicating if hook events occur on different thread than hook was registered.
Public propertyIsDisposed
Gets value indicating if this instance was already disposed
Public propertyRegistered
Gets value indicating if hook is registered for this instance

Events

  NameDescription
Public eventDisposed
Raised when object is disposed

See Also