SetupApiSetupDiEnumDeviceInfo Method
Returns a
SetupApiDeviceInfo structure that specifies a
device information element in a device information set.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("SetupApi.dll", SetLastError = true)]
public static bool SetupDiEnumDeviceInfo(
IntPtr deviceInfoSet,
int memberIndex,
ref SetupApiDeviceInfo refDeviceInfoData
)
<DllImportAttribute("SetupApi.dll", SetLastError := true>]
Public Shared Function SetupDiEnumDeviceInfo (
deviceInfoSet As IntPtr,
memberIndex As Integer,
ByRef refDeviceInfoData As SetupApiDeviceInfo
) As Boolean
Dim deviceInfoSet As IntPtr
Dim memberIndex As Integer
Dim refDeviceInfoData As SetupApiDeviceInfo
Dim returnValue As Boolean
returnValue = SetupApi.SetupDiEnumDeviceInfo(deviceInfoSet,
memberIndex, refDeviceInfoData)
public:
[DllImportAttribute(L"SetupApi.dll", SetLastError = true)]
static bool SetupDiEnumDeviceInfo(
IntPtr deviceInfoSet,
int memberIndex,
SetupApiDeviceInfo% refDeviceInfoData
)
[<DllImportAttribute("SetupApi.dll", SetLastError = true)>]
static member SetupDiEnumDeviceInfo :
deviceInfoSet : IntPtr *
memberIndex : int *
refDeviceInfoData : SetupApiDeviceInfo byref -> bool
No code example is currently available or this language may not be supported.
- deviceInfoSet IntPtr
-
A handle to the device information set for which to return an SetupApiDeviceInfo structure
that represents a device information element.
- memberIndex Int32
-
A zero-based index of the device information element to retrieve.
- refDeviceInfoData SetupApiDeviceInfo
-
A pointer to an SetupApiDeviceInfo structure to receive information about
an enumerated device information element.
Boolean
Returns
if it is successful, or
otherwise.
To get extended error information, call
GetLastWin32Error.