VisioForge (c) 2025

Search Results for

    Class GlobalKeyboardHook

    Class GlobalKeyboardHook.

    Inheritance
    object
    GlobalKeyboardHook
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VisioForge.Core.UI.WinForms.Dialogs
    Assembly: VisioForge.Core.dll
    Syntax
    public class GlobalKeyboardHook : IDisposable

    Constructors

    GlobalKeyboardHook(Keys[])

    Initializes a new instance of the GlobalKeyboardHook class.

    Declaration
    public GlobalKeyboardHook(Keys[] registeredKeys = null)
    Parameters
    Type Name Description
    Keys[] registeredKeys

    Keys that should trigger logging. Pass null for full logging.

    Fields

    LlkhfAltdown

    The LLKHF altdown.

    Declaration
    public const int LlkhfAltdown = 32
    Field Value
    Type Description
    int

    WH_KEYBOARD_LL

    The wh keyboard ll.

    Declaration
    public const int WH_KEYBOARD_LL = 13
    Field Value
    Type Description
    int

    Properties

    RegisteredKeys

    Gets the registered keys.

    Declaration
    public Keys[] RegisteredKeys { get; }
    Property Value
    Type Description
    Keys[]

    Methods

    Dispose()

    Disposes this instance.

    Declaration
    public void Dispose()

    Dispose(bool)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    ~GlobalKeyboardHook()

    Finalizes an instance of the GlobalKeyboardHook class.

    Declaration
    protected ~GlobalKeyboardHook()

    LowLevelKeyboardProc(int, nint, nint)

    Lows the level keyboard proc.

    Declaration
    public nint LowLevelKeyboardProc(int nCode, nint wParam, nint lParam)
    Parameters
    Type Name Description
    int nCode

    The n code.

    nint wParam

    The w parameter.

    nint lParam

    The l parameter.

    Returns
    Type Description
    nint

    IntPtr.

    Events

    KeyboardPressed

    Occurs when [keyboard pressed].

    Declaration
    public event EventHandler<GlobalKeyboardHookEventArgs> KeyboardPressed
    Event Type
    Type Description
    EventHandler<GlobalKeyboardHookEventArgs>

    Implements

    IDisposable