[StructLayout(LayoutKind.Sequential)]
public class KBDLLHOOKSTRUCT
{
public int vkCode;
public int scanCode;
public int flags;
public int time;
public IntPtr dwExtraInfo;
}
<StructLayout(LayoutKind.Sequential)> _
Public Structure KBDLLHOOKSTRUCT
public vkCode As Integer
public scanCode As Integer
public flags As Integer
public time As Integer
public dwExtraInfo As Integer
End Structure
Added by Senthamil.
Changed to class to get the correct marshalling in SetWindowsHookEx