Why does SetupDiEnumDriverInfo give two version numbers for my driver
问题 I'm trying to get the version number of a driver programmatically. The seems to be done by using SetupDiEnumDriverInfo to get a SP_DRVINFO_DATA struct and inspect the DriverVersion field . The following code works, but returns two different versions for the same driver. My device is a custom USB device, with a single .sys file. There is only one device connected to my machine. I specify DIGCF_PRESENT to only query the drivers of currently attached devices. int main(void) { // Get the "device