Contents

ChangePowerState

Changes the device’s power state to the specified level.

Declaration

virtual kern_return_t ChangePowerState(uint32_t powerFlags);

Parameters

Return Value

kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

Discussion

If the new state is different than the device’s current state, this method places an asynchronous request to change the state to the new value. If the change is successful, the system subsequently calls the SetPowerState method of your service.

See Also

Responding to Power-Level Changes