KEY_EVENT_RECORD (Structures)
Last changed: -79.206.152.209

.
Summary
The KEY_EVENT_RECORD structure is used to report keyboard input events in a console INPUT_RECORD structure.

C# Definition:

[StructLayout(LayoutKind.Explicit,CharSet=CharSet.Unicode)]

  public struct KEY_EVENT_RECORD
  {
    [FieldOffset(0),MarshalAs(UnmanagedType.Bool)]
    public bool bKeyDown;
    [FieldOffset(4),MarshalAs(UnmanagedType.U2)]
    public ushort wRepeatCount;
    [FieldOffset(6),MarshalAs(UnmanagedType.U2)]
    public VirtualKeys wVirtualKeyCode;
    [FieldOffset(8),MarshalAs(UnmanagedType.U2)]
    public ushort wVirtualScanCode;
    [FieldOffset(10)]
    public char UnicodeChar;
    [FieldOffset(12),MarshalAs(UnmanagedType.U4)]
    public ControlKeyState dwControlKeyState;
  }

VB Definition:

Structure KEY_EVENT_RECORD
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation