Jump to content

wpQueryPowerManagement

From EDM2

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

This instance method provides the ability to query the enable or disable state of the OS/2 Power Management support.

Syntax

_wpQueryPowerManagement(somSelf)

Parameters

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

Returns

rc (BOOL) - returns
Power management flag.
TRUE: The power management is enabled.
FALSE: The power management is disabled.

Example Code

Declaration:

#define INCL_WINWORKPLACE
#include <os2.h>

WPPower      *somSelf;  /* Pointer to the object on which the method is being invoked. */
BOOL         rc;        /* Power management flag. */

rc = _wpQueryPowerManagement(somSelf);

Related Methods