C# Class SoundSwitch.Framework.WindowsAPIAdapter

Inheritance: System.Windows.Forms.Form
ファイルを表示 Open project: Belphemur/SoundSwitch Class Usage Examples

Public Methods

Method Description
RegisterHotKey ( HotKeys hotKeys ) : bool

Registers a HotKey in the system.

Start ( ThreadExceptionEventHandler exceptionEventHandler = null ) : void

Star the Adapter thread

Stop ( ) : void

Stop the adapter thread

UnRegisterHotKey ( HotKeys hotKeys ) : bool

Unregister a registered HotKey

Protected Methods

Method Description
Dispose ( bool disposing ) : void
SetVisibleCore ( bool value ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
ConvertLParam ( IntPtr lParam ) : long

To avoid overflow on 64 bit platform use this method

EndForm ( ) : void
ProcessHotKeyEvent ( Message m ) : void
RunForm ( ) : void
WindowsAPIAdapter ( ) : System

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

RegisterHotKey() public static method

Registers a HotKey in the system.
public static RegisterHotKey ( HotKeys hotKeys ) : bool
hotKeys HotKeys Represent the hotkey to register
return bool

SetVisibleCore() protected method

protected SetVisibleCore ( bool value ) : void
value bool
return void

Start() public static method

Star the Adapter thread
public static Start ( ThreadExceptionEventHandler exceptionEventHandler = null ) : void
exceptionEventHandler ThreadExceptionEventHandler
return void

Stop() public static method

Stop the adapter thread
public static Stop ( ) : void
return void

UnRegisterHotKey() public static method

Unregister a registered HotKey
public static UnRegisterHotKey ( HotKeys hotKeys ) : bool
hotKeys HotKeys
return bool

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void