PowerStatusMsg::SetPowerStatus

Windows CE 5.0 Not SupportedWindows Embedded NavReady 2009 Supported

10/16/2008

This method sets the power status, which includes both power-supply status and battery status, for this power-status message.

Syntax

void SetPowerStatus(
  unsigned char Power,
  unsigned char Status
);

Parameters

  • Power
    [in] Describes the power-supply status of the host device. It can be one of the following values:

    • ExternalPower (0x00)
    • BatteryPowerNormal (0x01)
    • BatteryPowerLow (0x02)
  • Status
    [in] Describes the battery status. It can be one of the following values:

    • NoPower (0x00)
    • FullyCharged (0xF0)

Return Value

None.

Remarks

This method sets the internal PowerStatus field of this message by concatenating the value of the Power and Status parameters.

Requirements

Header DBRLib.h
Library DBRLib.lib
Windows Embedded CE Windows CE 5.0, Windows Embedded NavReady 2009

See Also

Reference

PowerStatusMsg Class
MSN Direct Services Classes