SP_DEVINFO_DATA (Structures)
Last changed: 172.56.32.78

.
Summary
defines a device instance that is a member of the device information set

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct SP_DEVINFO_DATA
{
   public UInt32 cbSize;
   public Guid ClassGuid;
   public UInt32 DevInst;
   public IntPtr Reserved;
}

VB Definition:

    <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

User-Defined Field Types:

None.

Notes:

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.

Documentation