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

Registers a low-level keyboard hook, so keyboard events are obtained by this class.

Namespace: Tools.API.Hooks
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public void RegisterHook()
Visual Basic
Public Sub RegisterHook
Visual C++
public:
void RegisterHook()
F#
member RegisterHook : unit -> unit 
JScript
public function RegisterHook()

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionHook was already registered for this instance (Registered is true)
Tools.API..::..Win32APIExceptionAn error ocured while obtaining the hook.
System..::..ObjectDisposedExceptionIsDisposed is true

See Also