Win32 programmatic way to disable "Allow the computer to turn off this device to save power"?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,

I have an application that requires a constant connection to a USB device. A problem with that is that I need to go to device manager of the computer I install it on to and disable the option "Allow the computer to turn off this device to save power".

Is there a way to do this via WMI or some other windows API? My program is a Win32 form application in C++, using Visual Studio 2008 Standard SP1.

Cheers,
SC


View the full article
 
Back
Top