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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top