static extern bool DevicePowerOpen(uint flags);
Declare Function DevicePowerOpen Lib "powrprof.dll" (TODO) As TODO
if (!DevicePowerOpen(0))