Page 1 of 1

CheckUsbHdd for all external HDD

Posted: 2012-02-03, 19:01 UTC
by LonerD
Total Commander 8.0 public beta 18 (32/64)
Added: CheckUsbHdd=1 in wincmd.ini [Configuration]: Turn on/off check whether a harddisk is connected via USB, and show it with different icon (32/64)

Please, expand this option for ALL external HDD-drives - eSATA, IEEE 1394a etc

Posted: 2012-02-05, 15:28 UTC
by ghisler(Author)
Any idea how to detect eSATA devices? I'm currently using DeviceIoControl with parameter IOCTL_STORAGE_QUERY_PROPERTY, which can return one of these:

BusTypeUnknown = 0, BusTypeScsi, BusTypeAtapi, BusTypeAta, BusType1394, BusTypeSsa, BusTypeFibre, BusTypeUsb, BusTypeRAID, BusTypeiScsi, BusTypeSas, BusTypeSata.

Currently I'm only checking for BusTypeUsb. I can check for BusType1394 too. However, BusTypeSata will be returned for both internal and external drives...