SetupDiEnumDeviceInterfaces function setupapi

int SetupDiEnumDeviceInterfaces(
  1. int DeviceInfoSet,
  2. Pointer<SP_DEVINFO_DATA> DeviceInfoData,
  3. Pointer<GUID> InterfaceClassGuid,
  4. int MemberIndex,
  5. Pointer<SP_DEVICE_INTERFACE_DATA> DeviceInterfaceData,
)

The SetupDiEnumDeviceInterfaces function enumerates the device interfaces that are contained in a device information set.

BOOL SetupDiEnumDeviceInterfaces(
  [in]           HDEVINFO                  DeviceInfoSet,
  [in, optional] PSP_DEVINFO_DATA          DeviceInfoData,
  [in]           const GUID                *InterfaceClassGuid,
  [in]           DWORD                     MemberIndex,
  [out]          PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData
);

Implementation

int SetupDiEnumDeviceInterfaces(
        int DeviceInfoSet,
        Pointer<SP_DEVINFO_DATA> DeviceInfoData,
        Pointer<GUID> InterfaceClassGuid,
        int MemberIndex,
        Pointer<SP_DEVICE_INTERFACE_DATA> DeviceInterfaceData) =>
    _SetupDiEnumDeviceInterfaces(DeviceInfoSet, DeviceInfoData,
        InterfaceClassGuid, MemberIndex, DeviceInterfaceData);