Please help - right version?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I need to get to get the version of the driver currently attached to my USB
device.

Only way for me to get version info is to use:


DWORDLONG version = 0;
DWORD dwMemberIndex = 0;

SetupDiBuildDriverInfoList(hdevClassInfo, &DeviceInfoData,
SPDIT_COMPATDRIVER);
while (SetupDiEnumDriverInfo(hdevClassInfo, &DeviceInfoData,
SPDIT_COMPATDRIVER, dwMemberIndex, &DriverInfoData)) {
dwMemberIndex++;
version = DriverInfoData.DriverVersion;
}
SetupDiDestroyDriverInfoList(hdevClassInfo, &DeviceInfoData,
SPDIT_CLASSDRIVER );


However, the while loop shows several versions for my device.
How can I know which one my device is actually using?

Lisa


.



Relevant Pages