Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SP_DEVINFO_DATA (Structures)
 
.
Summary
defines a device instance that is a member of the device information set

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct SP_DEVINFO_DATA
{
   public uint cbSize;
   public Guid ClassGuid;
   public uint 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.

(Or, is it because the size of the Reserved pointer is 4 bytes vs 8 bytes ?)

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions