check it out:
[DllImport(nameof(SetupApi), SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern unsafe bool SetupDiEnumDeviceInfo(
SafeDeviceInfoSetHandle deviceInfoSet,
int memberIndex,
[Friendly(FriendlyFlags.Bidirectional)] SP_DEVINFO_DATA* deviceInfoData);
NOTE : " For any standard type of device, this specifies the name of the device setup class for the type of device that is installed by using this INF file. This name is usually one of the system-defined class names, such as Net or Display, which are listed in Devguid.h."