.NET Compact Framework Sample: Power Status

Language:
English
Learn how to query a device for battery and power status.
  • Version:

    1.0

    File Name:

    PowerStatusSampleSetup.exe

    Date Published:

    11/19/2003

    File Size:

    513 KB

      This sample demonstrates how to P/Invoke the GetSystemPowerStatusEx and GetSystemPowerStatusEx2 functions, each of which fill a SYSTEM_POWER_STATUS_EX and SYSTEM_POWER_STATUS_EX2 class respectively. These classes contain information about the batteries and power status of the device.
  • Supported Operating System

    Windows 2000, Windows 2000 Service Pack 2, Windows 2000 Service Pack 3, Windows 2000 Service Pack 4, Windows NT, Windows Server 2003, Windows XP

      • Visual Studio .NET 2003
      1. Click the Download link to start the download.
      2. Do one of the following:
        • To start the installation immediately, click Open or Run this program from its current location.
        • To copy the download to your computer for installation at a later time, click Save or Save this program to disk.