SetupDiGetDeviceInterfaceDetail

[DllImport("setupapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern bool SetupDiGetDeviceInterfaceDetail(
   IntPtr DeviceInfoSet,
   ref DeviceInterfaceData DeviceInterfaceData,
   IntPtr DeviceInterfaceDetailData,
   uint DeviceInterfaceDetailDataSize,
   ref uint RequiredSize,
   IntPtr DeviceInfoData
);

Microsoft documentation: Link

Last updated