Jump to content

wpQueryDefStatusView

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method returns the default status view of the current power object when Advanced Power Management (APM) is enabled.

Syntax

_wpQueryDefStatusView(somSelf)

Parameters

somSelf (WPPower *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPower.

Returns

ulDefStatus (ULONG) - returns
Flag indicating the default status view.
Possible values are described in the following list:
  • OPEN_STATUS The full status, including the battery life, power source, and battery state, is shown.
  • OPEN_BATTERY Only the battery life indicator is shown.

How to Override

This method should not be overridden.

Remarks

When Advanced Power Management (APM) is enabled, this method returns the current default view of the power management object.

When APM is not enabled, this method still returns the status, but the status returned is not the default view because APM is disabled. The status returned is the status that will be the default the next time APM is enabled.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPower *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG ulDefStatus; /* Flag indicating the default status view. */

ulDefStatus = _wpQueryDefStatusView(somSelf);

Related Methods