title: How to programatically disable "Enhanced Power Management" for certain USB devices?
body: <p>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.</p>
  
  <p>Due to changes in Windows 8.1 the OS keeps restarting the device and this is causing problems in the software.</p>
  
  <p>According to this Knowledge Base article: <a href="http://support.microsoft.com/kb/2900614" rel="nofollow">http://support.microsoft.com/kb/2900614</a>, 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.</p>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>E.g.  I'd like to modify all instances under:</p>
  
  <pre><code>  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_11AE&amp;PID_07CE
  </code></pre>
  
  <p>Including any future instances that may be connected to the system, after the installer executes.</p>