SetupApiSetupDiEnumDeviceInfo Method

Returns a SetupApiDeviceInfo structure that specifies a device information element in a device information set.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

Boolean
Returns if it is successful, or otherwise.

To get extended error information, call GetLastWin32Error.

Remarks

See Also