Sorry, I meant to say you can't do it in .NET.
the best I have found is:
http://www.codeguru.com/cpp/w-p/syst...cle.php/c6907/
its a java/c++ implementation but its source sode so you should be able to
port it.
Ciaran O'Donnell
"Scott S." wrote:
> Is there a way to cancel the changing of the power modes when subscribing to
> the PowerModeChanged event?
>
>
> "Ciaran O''Donnell" wrote:
>
> > You can do it in .NET, you can tell when it happens with
> > Microsoft.Win32.SystemEvents but you would need to find a WinAPI call to turn
> > it off
> >
> > HTH
> >
> > Ciaran O'Donnell
> >
> > "Scott S." wrote:
> >
> > > Does anyone know how to disable standby and any other power saver settings
> > > when my app is running? My app runs on computers that use touch screens and
> > > there is a bug in the driver that doesn't register touchscreen input as input
> > > so computers are going into standby when they shouldn't.