Post Reply 
Thread Rating:
  • 21 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable PowerManagement Option
Author Message
shinra358 Offline
Junior Member

Posts: 12
Joined: Sep 2011
Reputation: 0
Post: #1
Disable PowerManagement Option

I would like to suggest an option to keep screensaver/screen timeout/sleep mode from coming on like Zsnesw, Epsxe, Mame, etc.

P.S. Forgive me if I've asked this before here, it's hard for me to keep track with all the emus out there.
05-28-2012 02:58 AM
Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade

Posts: 1,506
Joined: Mar 2008
Reputation: 17
Post: #2
RE: Disable PowerManagement Option

The emulator already prevents the screensaver from coming on.

LRESULT MainWnd::OnMySysCommand(WPARAM wParam, LPARAM lParam)
  if(emulating && !theApp.paused) {
    if((wParam&0xFFF0) == SC_SCREENSAVE || (wParam&0xFFF0) == SC_MONITORPOWER)
      return 0;
  return Default();

However, Most applications that prevent the screensaver from coming up trip up on a change microsoft introduced in Windows XP SP3 that has carried over to Vista and 7, that is; "on resume, display logon/welcome screen" is checked, the Screensaver will run regardless of the applications capability for preventing the screen saver.

Quote:"Microsoft Windows Vista and later: If password protection is enabled by policy, the screen saver is started regardless of what an application does with the SC_SCREENSAVE notification—even if fails to pass it to DefWindowProc."

(This post was last modified: 05-28-2012 04:14 AM by Squall Leonhart.)
05-28-2012 04:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

 Quick Theme: