G
Guest
I have a structure:
<StructLayout(LayoutKind.Sequential)> Friend Structure KEYBDINPUT
Dim wVK As Byte
Dim wScan As Byte
Dim dwFlags As Integer
Dim time As Integer
Dim dwExtraInfo As Integer
End Structure
dim k as KEYBDINPUT
When I use Marshal.sizeof(k), I get the size 16 whidh is two more bytes than
the structure but when I use Len(k), I get the correct number of 14. What is
going on? I'm confused
<StructLayout(LayoutKind.Sequential)> Friend Structure KEYBDINPUT
Dim wVK As Byte
Dim wScan As Byte
Dim dwFlags As Integer
Dim time As Integer
Dim dwExtraInfo As Integer
End Structure
dim k as KEYBDINPUT
When I use Marshal.sizeof(k), I get the size 16 whidh is two more bytes than
the structure but when I use Len(k), I get the correct number of 14. What is
going on? I'm confused