Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

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

$
0
0
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

Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>