[StructLayout(LayoutKind.Sequential)]
struct SP_DEVINFO_DATA
{
public UInt32 cbSize;
public Guid ClassGuid;
public UInt32 DevInst;
public IntPtr Reserved;
}
<StructLayout(LayoutKind.Sequential)> _
Private Structure SP_DEVINFO_DATA
Public cbSize As Integer
Public ClassGuid As Guid
Public PropertyID As Integer
Public Reserved As IntPtr
End Structure
None.
On 32bit platforms, all SetupApi structures are 1-Byte packed. On 64bit platforms the SetupApi structures are 8-byte packed. IE for 32 bit SP_DEVINFO_DATA.cbSize=28, for 64Bit SP_DEVINFO_DATA.cbSize=(28+4)=32.