SetupDiDestroyDeviceInfoList (setupapi)
Last changed: -12.191.56.10

.
Summary
Free resources used by SetupDiGetClassDevs()

C# Signature:

[DllImport(@"setupapi.dll", CharSet=CharSet.Auto, SetLastError = true)]
public static extern UInt16 SetupDiDestroyDeviceInfoList( IntPtr hDevInfo );

VB Signature:

    <DllImport("setupapi.dll", _
    EntryPoint:="SetupDiDestroyDeviceInfoList", _
    SetLastError:=True, _
    CharSet:=CharSet.Unicode, _
    ExactSpelling:=True, _
    PreserveSig:=True, _
    CallingConvention:=CallingConvention.Winapi)> _
    Private Shared Function SetupDiDestroyDeviceInfoList( _
    ByVal DeviceInfoSet As Integer) As Boolean
    End Function

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation