SetupDiEnumDeviceInfo Example??

  • Thread starter Thread starter Schorschi
  • Start date Start date
Anyone has a valid example of how to call SetupDiEnumDeviceInfo via VB .NET?

Try the following (untested) code

Structure SP_DEVINFO_DATA
Public cbSize As Integer
Public ClassGuid As Guid
Public DevInst As Integer
Public Reserved As IntPtr
End Structure

Declare Function SetupDiEnumDeviceInfo Lib "setupapi.dll" (ByVal
DeviceInfoSet As IntPtr, ByVal MemberIndex As Integer, ByRef
DeviceInfoData As SP_DEVINFO_DATA) As Boolean



Mattias
 
Back
Top