Hello!
Situation is quite simple at first sight, but if try to delve it, it's not so easy. But ok, I'll try to describe it: we have an usb-device (not a HID), and drivers for that device with .inf file(NICE!) without Default installation field inside.
So the problem is: Rundll.exe throws an exception every time, when I try to run Setupapi by rundll.exe. OK, I tried to use driverpackageinstall and driverPackageuninstall from wdk and actually I got stuck in. Uninstalling shows result 0, but installing shows
something like -54546475.
Guys, who knows, how we can re-install drivers for usb device, please answer.
Language is C#.
The only reason, why I want to re-install driver is, if you will not use device in 3 hours, after that device will not work properly at all. I don't know, who wrote drivers for that device, but it works in this way.