setsuspendstate?

juliemac

New member
Joined
Apr 19, 2005
Messages
4
Programming Experience
10+
I use the setsuspendstate code in one app on one machine and it works. On the new machine? Nope. Any ideas?
<code>
Private Declare Function SetSuspendState Lib "Powrprof" _
(ByVal Hibernate As Long, ByVal ForceCritical As Long, _
ByVal DisableWakeEvent As Long) As Long
</code>

<button>
Private Sub Cmdyes_Click()
' SetSuspendState 1, 0, 0 'hibernate
SetSuspendState 0, 0, 0 'suspend
End Sub
</button>

Neither setting works on the new machine. Powrprof.dll is in the correct place in the OS.

Really stumped.
TIA!

Juliemac
 
Back
Top