C# Class SebWindowsClient.BlockShortcutsUtils.SebKeyCapture

Allows filtering of any keys, including special keys like CTRL, ALT, and Windows keys, Win32 windows hooks.
Original code example from: http://geekswithblogs.net/aghausman/archive/
Exibir arquivo Open project: SafeExamBrowser/seb-win Class Usage Examples

Private Methods

Method Description
CallNextHookEx ( IntPtr hook, int nCode, IntPtr wp, IntPtr lp ) : IntPtr
CaptureKey ( int nCode, IntPtr wp, IntPtr lp ) : IntPtr

Capture keystrokes and filter which key events are permitted to continue.

CaptureMouseButton ( int nCode, IntPtr wp, IntPtr lp ) : IntPtr

Capture keystrokes and filter which key events are permitted to continue.

DisableKey ( IntPtr wp, IntPtr lp ) : bool

Disable not enabled Keys from SebClient configuration

DisableMouseButton ( int nCode, IntPtr wp, IntPtr lp ) : bool

Disable ot enabled Mouse Buttons from SebClient configuration

GetAsyncKeyState ( Keys key ) : short
GetModuleHandle ( string name ) : IntPtr
RegisterKeyboardHookMethod ( ) : void

Register key capture method.

ResetCtrlQExitSequence ( IntPtr wp, IntPtr lp ) : void

Reset ctrl-Q Exit Key Sequence

ResetExitKeySequence ( IntPtr wp, IntPtr lp ) : void

Reset Exit Key Sequence

SetAndTestCtrlQExitSequence ( IntPtr wp, IntPtr lp ) : bool

Set and Test ctrl-Q Exit Key Sequence

SetAndTestExitKeySequence ( IntPtr wp, IntPtr lp ) : bool

Set and Test Exit Key Sequence

SetExitKeys ( ) : void

Set and Test Exit Key Sequence

SetWindowsHookEx ( int id, LowLevelProc callback, IntPtr hMod, uint dwThreadId ) : IntPtr
TestAppExitSequences ( IntPtr wp, IntPtr lp ) : void

Test app exit keys sequence

TestTouchExitSequence ( System.Drawing.Point cursorsPosition ) : void
UnhookWindowsHookEx ( IntPtr hook ) : bool
UnregisterKeyboardHookMethod ( ) : void

Unregister key capture method.