hi all,
In my PC, I inject 4 USB flash drives, say 1,2,3,4, and also install the vendor
driver for 1 (but not for the other three).
My first question is that which driver will be used by the drives 2,3,4. Will it be
the USBSTOR.sys driver or the vendor driver of 1.
After setting the DI_FLAGSEX_INSTALLEDDRIVER | DI_FLAGSEX_ALLOWEXCLUDEDDRVS flags by
calling SetupDiSetDeviceInstallParams(Devs, DevInfo, &deviceInstallParams), the driver list is built by using the API
WINSETUPAPI BOOL WINAPI
SetupDiBuildDriverInfoList(
IN HDEVINFO DeviceInfoSet,
IN OUT PSP_DEVINFO_DATA DeviceInfoData, OPTIONAL
IN DWORD DriverType
);
for drive 1, will the resultant list contain two driver nodes or one.
In this case, if there is one node in the driver list, will it be regarding
USBSTOR.sys or the vendor driver or will there be two nodes.
Similarly, if the same is done for each of the 2,3,4 drives, will the resultant list
contain one driver node or two.
In the cases regarding drive nos. 2,3,4, if there is one node in the driver list,
will it be regarding USBSTOR.sys or the drive 1’s vendor driver. Otherwise can there be two nodes?
And if in all the above cases there is always one node in the driver list, then how can a driver list be produced, by using the above mentioned API, which has more than one node or in other words, can there ever be a case when the SetupDiBuildDriverInfoList AOI creates a list which contains more than one node.
Thanks & regards
Pankaj
P.S. : I have tried two build this list for a USB flash drive (without installing any vendor driver for it), and it contains one node.
Here’s a new way to find what you’re looking for - Yahoo! Answers