Power management not disabled
Moderator: ZSNES Mods
Power management not disabled
On my laptop I have it set to disable power management as I use a controller, but my laptop display still turns off after the period of time. Did I miss a setting somewhere for it?
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
OS ?
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Using SetThreadExecutionState with the ES_DISPLAY_REQUIRED flag should work on any NT OS starting with Windows 2000, and is probably the preferred way of doing things. It should also work from limited accounts, unlike the SystemParametersInfo function.
It should probably also be used with ES_CONTINUOUS flag so the display required state persists until the next call.
It should probably also be used with ES_CONTINUOUS flag so the display required state persists until the next call.
-
- Trooper
- Posts: 369
- Joined: Tue Jun 10, 2008 6:19 am
- Location: Australia
- Contact:
does the same thing with a game controller on XP if you have the OS ask for a password on resume from screensaver/standby
[img]http://img.photobucket.com/albums/v253/squall_leonhart69r/Final_Fantasy_8/squall_sig1.gif[/img]
[url=http://vba-m.com/]VBA-M Forum[/url], [url=http://www.ngohq.com]NGOHQ[/url]
[url=http://vba-m.com/]VBA-M Forum[/url], [url=http://www.ngohq.com]NGOHQ[/url]
-
- Trooper
- Posts: 369
- Joined: Tue Jun 10, 2008 6:19 am
- Location: Australia
- Contact:
This will benefit VBA too thenkode54 wrote:Which must mean that the current scheme doesn't work, and that SetThreadExecutionState should be employed for 2000 and newer whenever.Squall_Leonhart wrote:does the same thing with a game controller on XP if you have the OS ask for a password on resume from screensaver/standby

[img]http://img.photobucket.com/albums/v253/squall_leonhart69r/Final_Fantasy_8/squall_sig1.gif[/img]
[url=http://vba-m.com/]VBA-M Forum[/url], [url=http://www.ngohq.com]NGOHQ[/url]
[url=http://vba-m.com/]VBA-M Forum[/url], [url=http://www.ngohq.com]NGOHQ[/url]