wpQueryPowerConfirmation
Appearance
This method is specific to version 2.1, or higher, of the OS/2 operating system.
This instance method queries the current confirmation message control value for the power object. This message is displayed when power state changes are requested from the popup menu of the power object.
Syntax
_wpQueryPowerConfirmation(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 confirmation flag.
- TRUE: The power confirmation is enabled.
- FALSE: The power confirmation 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 confirmation flag. */ rc = _wpQueryPowerConfirmation(somSelf);