mercredi 5 août 2015

Using SetupDI API functions, to disable enable COM port device driver requires running as Administrator


I need to Disable/Enable a loaded device driver because the device "at times" when connected fails to load properly.
This device is controlled by the user and is POWERED AND UN-POWERED very frequently. The program which needs to use the driver DETECTS a failure and needs to Disable/Enable which ALWAYS corrects the issue.

But using the SetupAPI methods causes the executable to require ADMIN rights (Windows 7 and Windows 10). I'm not sure if I need to use "other" coding methods or if SIGNING the executable will remove the "requirement" to run as administrator?

Any ideas would be greatly appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire