SetupDiEnumDeviceInfo Example??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Schorschi

    SetupDiEnumDeviceInfo Example??

    Anyone has a valid example of how to call SetupDiEnumDevi ceInfo via VB .NET?
  • Mattias Sjögren

    #2
    Re: SetupDiEnumDevi ceInfo Example??

    [color=blue]
    >Anyone has a valid example of how to call SetupDiEnumDevi ceInfo via VB .NET?[/color]

    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 SetupDiEnumDevi ceInfo Lib "setupapi.d ll" (ByVal
    DeviceInfoSet As IntPtr, ByVal MemberIndex As Integer, ByRef
    DeviceInfoData As SP_DEVINFO_DATA ) As Boolean



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    Working...