Exista un Code Pack pentru Microsoft .Net Framework la adresa http://code.msdn.microsoft.com/WindowsAPICodePack cu ajutorul caruia se pot accesa functionalitati specifice sistemului de operare Windows 7: API-uri pentru power management, Direct X, application recovery, Libraries, Aero Glass.
Exemplu:
private bool monitorOn = PowerManager.IsMonitorOn;
private int bateryLife = PowerManager.BatteryLifePercent;
private bool isUpsPresent = PowerManager.IsUpsPresent;
Category: Uncategorized