Global SetSystemPowerState:Int(fSuspend, fForce) "win32" Global GetLastError:Int() "win32" lib = LoadLibraryA ("kernel32.dll") If lib SetSystemPowerState = GetProcAddress(lib, "SetSystemPowerState") GetLastError=GetProcAddress(lib, "GetLastError") Else Print "Dead"; End EndIf SetSystemPowerState(False,False) e=GetLastError() Print e
ERROR_PRIVILEGE_NOT_HELD=1314!
do enjoy the windows api it is *such* a joy to use NOT!!! lol