PDA

View Full Version : Locating a driver on the operating system



schall_l
14th July 2008, 12:53
I have a general question.

I would like to write an application accessing a device connected via USB to my PC running Microsoft Windows. The vendor of this device provides a CD for the installation of the driver that does consist of a bunches of .sys .inf and .dll files.

The application itself can then access the device using the .dll file. This works fine.

I am trying to see if there is a possibility to detect if the driver is installed. Under windows XP the driver is installed in the windows\system32 directory, I am not sure if this is the same under other version of Windows. I can imagine that the location could be different depending on the version and/or installation of the os.

Is there some QT classes or mechanism, working whatever version of the operating system is running on the PC, that can be used to detect and find installed drivers ?

wysota
14th July 2008, 22:11
I'm not sure if that is what you want, but you can use QLibrary if you know the name of the driver.

schall_l
15th July 2008, 09:19
Thank you, this is exactly what I was looking for.