7 Oct 2011 by Mario Majčica
Did you tried with[DllImport("kernel32.dll")]static extern bool GetSystemPowerStatus(out SYSTEM_POWER_STATUS lpSystemPowerStatus)Actually I never tried it, but this should help.http://www.pinvoke.net/default.aspx/kernel32/GetSystemPowerStatus.html[^]Let us...