Hi Michael, You want to look at the windows power management functions, in particular I SetThreadExecutionState. MSDN link: http://msdn.microsoft.com/en-us/library/aa373163(v=VS.85).aspx
<http://msdn.microsoft.com/en-us/library/aa373163(v=VS.85).aspx>ciao, Richard On Wed, May 5, 2010 at 10:38 AM, Michael Ridland <rid...@gmail.com> wrote: > > Is it possible to cancel prevent sleep/suspend/shutdown in Windows > 7/Vista/XP? If so, how can it be done? > > > Thanks. > > >