[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;
}
Structure KEY_EVENT_RECORD
Public TODO
End Structure
None.
None.