2

I have several applications that seem to turn off the screensaver and the powersave mode of the video card (eg Skype, VLC, mplayer, etc). Sometimes, these applications crash and the monitor is just on all the time until I reboot. Is there a simple API call to turn on the screensaver and powersave mode again?

4

1 に答える 1

0

これらのアプリケーションはおそらくSystemParametersInfoを使用してスクリーンセーバーをオフにしているため、自分で使用して元に戻すことができます。あなたがしなければならないかもしれない呼び出しはここにあります:

SystemParametersInfo(SPI_SETLOWPOWERTIMEOUT,power timeout you want, NULL, 0);
SystemParametersInfo(SPI_SETPOWEROFFTIMEOUT, poweroff timeout you want, NULL, 0);
SystemParametersInfo(SPI_SETSCREENSAVETIMEOUT,screensaver timeout you want, NULL, 0);
于 2009-11-06T12:22:19.610 に答える