11-05-20, 03:49 PM
11-05-20, 10:53 PM
كود :
<DllImport("PowrProf.dll", CharSet:=CharSet.Auto, ExactSpelling:=True)>
Public Shared Function SetSuspendState(ByVal hiberate As Boolean, ByVal forceCritical As Boolean, ByVal disableWakeEvent As Boolean) As Booleanكود :
SetSuspendState(false, true, true)اغلاق الكمبيوتر
كود :
Process.Start("shutdown","/s /t 0")كود :
Process.Start("shutdown",
"/r /t 0")