C# Class SoundSwitch.Framework.WindowsAPIAdapter

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: Belphemur/SoundSwitch Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
SetVisibleCore ( bool value ) : void
WndProc ( Message &m ) : void

Private Methods

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

RegisterHotKey() public static méthode

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

SetVisibleCore() protected méthode

protected SetVisibleCore ( bool value ) : void
value bool
Résultat void

Start() public static méthode

Star the Adapter thread
public static Start ( ThreadExceptionEventHandler exceptionEventHandler = null ) : void
exceptionEventHandler ThreadExceptionEventHandler
Résultat void

Stop() public static méthode

Stop the adapter thread
public static Stop ( ) : void
Résultat void

UnRegisterHotKey() public static méthode

Unregister a registered HotKey
public static UnRegisterHotKey ( HotKeys hotKeys ) : bool
hotKeys HotKeys
Résultat bool

WndProc() protected méthode

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
Résultat void