A
Anonymous
Guest
- Thread starter
- #21
I've found a very simle API to make the system hibernate.
I made a try in VB6 but I guess it will run in .net to.
------- code used on a form in VB ----------
Private Declare Function SetSuspendState Lib "Powrprof" (ByVal Hibernate As Long, ByVal ForceCritical As Long, ByVal DisableWakeEvent As Long) As Long
Private Sub cbSleep_Click()
SetSuspendState 1, 0, 0
End Sub
------------------------------------------
Tonight I will try to setup the environment to build MP to see if any of this hibernate/resume works for real. It might take a while to figure out enough of how MP is constructed but I will give it a try.
I made a try in VB6 but I guess it will run in .net to.
------- code used on a form in VB ----------
Private Declare Function SetSuspendState Lib "Powrprof" (ByVal Hibernate As Long, ByVal ForceCritical As Long, ByVal DisableWakeEvent As Long) As Long
Private Sub cbSleep_Click()
SetSuspendState 1, 0, 0
End Sub
------------------------------------------
Tonight I will try to setup the environment to build MP to see if any of this hibernate/resume works for real. It might take a while to figure out enough of how MP is constructed but I will give it a try.