Suspend and Resume Functionality in the Framework

  • Thread starter Thread starter Drydo
  • Start date Start date
D

Drydo

Eh up,

Does the .Net framework support the ability to place the desktop
machine into suspend mode and resume again after a specified amount of
time?

In VB6 this could be achieved by using the 'SetSystemPowerState' to go
into Suspend and to resume after a specified amount of time (by
setting a low level timer to generate a wakeup event using
CreateWaitableTimer).

Will I have to revert to converting the API32 calls to dotNET (using
the PInvoke) or does the Framework support this?

Any help, pointers or encourage gratefully received! Drydo

p.s. if anyone is aware of a API32 / dotNet comparison facility out
there - let me know, I'm going through the painful process of
converting API calls into a dotNet app and I would rather use the
Framework than erverting to the API32.
 
In the Microsoft.Win32 namespace there are a few events related to the
system. However, AFAIK, this isn't exposed directly in the current
framework.

-mike
MVP
 
Back
Top