Jump to content

wpSetPowerManagement

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 enable or disable the OS/2 Power Management support** .

Syntax

_wpSetPowerManagement(somSelf, fPower) 

Parameters

somSelf (WPPower *) - input
Pointer to the object on which the method is being invoked .
Points to an object of class WPPower .
fPower (BOOL) - input
Power management flag .
    • TRUE: Enable power management** .
    • FALSE: Disable power management** .

Returns

rc (BOOL) - returns
Success indicator .
    • TRUE: Successful completion** .
    • FALSE: Error occurred** .

Example Code

Declaration:

#define INCL_WINWORKPLACE
#include <os2.h>

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

rc = _wpSetPowerManagement(somSelf, fPower);

Related Methods