Hibetnateing computer in vb.net
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Can anyone answer me what code should i use to hibernate the computer. I have searched over the internet for it but i don't found anything about it. Mohit Namdeo
-
Can anyone answer me what code should i use to hibernate the computer. I have searched over the internet for it but i don't found anything about it. Mohit Namdeo
Hello, this is C# version of the code:
[DllImport( "powrprof.dll", EntryPoint="SetSuspendState", CharSet=CharSet.Ansi)] private static extern int SetSuspendState(int Hibernate, int ForceCritical, int DisableWakeEvent);
you should call it like this:SetSuspendState(1,0,0);
I found this information here Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net