public static extern bool SetupDiGetDeviceInterfaceDetail( IntPtr lpDeviceInfoSet, ref DeviceInterfaceData oInterfaceData, ref DeviceInterfaceDetailData oDetailData, //We have the size -> send struct uint nDeviceInterfaceDetailDataSize, ref uint nRequiredSize, ref DevinfoData deviceInfoData);
public static extern bool SetupDiGetDeviceInterfaceDetail( IntPtr lpDeviceInfoSet, ref DeviceInterfaceData oInterfaceData, IntPtr lpDeviceInterfaceDetailData, //To get the nRequiredSize uint nDeviceInterfaceDetailDataSize, ref uint nRequiredSize, ref DevinfoData deviceInfoData);