static extern bool IsPwrSuspendAllowed();
Declare Function IsPwrSuspendAllowed Lib "powrprof.dll" () As Boolean