This method is specific to version 2.1, or higher, of the OS/2 operating system.
This instance method performs the power management state change requests to the OS/2 Power Management Subsystem.
#define INCL_WINWORKPLACE #include <os2.h> WPPower *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG ulParm1; /* Parameter 1. */ ULONG ulparm2; /* Parameter 2. */ BOOL rc; /* Success indicator. */ rc = _wpChangePowerState(somSelf, ulParm1, ulparm2);