I'm working on software that interacts with a custom USB device. The device presents itself as a HID device and the software interacts with it via File I/O.
Due to changes in Windows 8.1 the OS keeps restarting the device and this is causing problems in the software.
According to this Knowledge Base article: http://support.microsoft.com/kb/2900614, Microsoft recommends disabling the Enhanced Power Management feature for a USB device if it is having this problem and after doing so manually the problem does go away.
Now, I'd like to modify the installer of the software to disable this setting for all of our devices, not just for a specific device instance.
Is there a way to accomplish that? Either via a Windows API call, or through a registry setting that would affect all instances of a particular ProductID / VendorID combination?
E.g. I'd like to modify all instances under:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_11AE&PID_07CE
Including any future instances that may be connected to the system, after the installer executes.