struct KEYBDINPUT {
public ushort wVk;
public ushort wScan;
public uint dwFlags;
public uint time;
public IntPtr dwExtraInfo;
}
VB Definition:
<StructLayout(LayoutKind.Explicit)> _
Private Structure KEYBDINPUT
Public wVk As Short
Public wScan As Short
Public dwFlags As Integer
Public time As Integer
Public dwExtraInfo As IntPtr
End Structure
User-Defined Field Types:
None.
Notes:
Changed C# definition to use unsigned types (to match WORD and DWORD types). Also made members public.
The [KEYBDINPUT] structure contains information about a simulated keyboard event. It's part of the [INPUT] structure, and is used for the SendInput function.
4/10/2012 6:38:31 PM - -77.125.97.109
Used by [user32.SendInput] to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.