C# Class PointerDeviceDriver.WindowsHook

Inheritance: IDisposable
Mostra file Open project: Invenietis/ck-certified Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Removes the current hook set by SetWindowsHook.

Private Methods

Method Description
CanSetWindowsHook ( HookType type, string &errorMessage ) : bool

Returns true if the hook can be set, false if it can't be set.

MainHookProc ( int code, IntPtr wParam, IntPtr lParam ) : int

Main HookProc: chain the call if not canceled by HookProcInvoked.

SetWindowsHook ( ) : IntPtr

Sets the hook and returns the handle as an IntPtr. Can be called multiple times.

WindowsHook ( SynchronizationContext syncCtx, HookType hType ) : System

Method Details

Dispose() public method

Removes the current hook set by SetWindowsHook.
public Dispose ( ) : void
return void