C# Class ModernSteward.GlobalHook

Abstract base class for Mouse and Keyboard hooks
Exibir arquivo Open project: ModernSteward/ModernSteward

Protected Properties

Property Type Description
_handleToHook int
_hookCallback HookProc
_hookType int
_isStarted bool

Public Methods

Method Description
GlobalHook ( ) : System
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
Application_ApplicationExit ( object sender, EventArgs e ) : void
HookCallbackProcedure ( int nCode, Int32 wParam, IntPtr lParam ) : int

Private Methods

Method Description
CallNextHookEx ( int idHook, int nCode, int wParam, IntPtr lParam ) : int
GetKeyState ( int vKey ) : short
GetKeyboardState ( byte pbKeyState ) : int
SetWindowsHookEx ( int idHook, HookProc lpfn, IntPtr hMod, int dwThreadId ) : int
ToAscii ( int uVirtKey, int uScanCode, byte lpbKeyState, byte lpwTransKey, int fuState ) : int
UnhookWindowsHookEx ( int idHook ) : int

Method Details

Application_ApplicationExit() protected method

protected Application_ApplicationExit ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

GlobalHook() public method

public GlobalHook ( ) : System
return System

HookCallbackProcedure() protected method

protected HookCallbackProcedure ( int nCode, Int32 wParam, IntPtr lParam ) : int
nCode int
wParam System.Int32
lParam System.IntPtr
return int

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

_handleToHook protected_oe property

protected int _handleToHook
return int

_hookCallback protected_oe property

protected HookProc _hookCallback
return HookProc

_hookType protected_oe property

protected int _hookType
return int

_isStarted protected_oe property

protected bool _isStarted
return bool