Vista powersaves mid-game and messes up

BlitzMax Forums/BlitzMax Programming/Vista powersaves mid-game and messes up

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Let me clarify this, there are two issues:

1) Is it possible to prevent powersaving in Vista when the app is full-screen or windowed? If not, then is it possible to prevent the crash on returning from power saving mode (I may need to write a simple test app to see if it's some piece of complex code in my game crashing on return from power save, or if it's something very simple that can be shown up with a basic graphics window).

2) Is it possible to stop the windows screensaver from coming up if your game is active (in windowed mode - I think it doesn't come up already in full-screen mode). This issue is not vital in my opinion.

Thanks all for any help :-)