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
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.