Function

IOPMCancelScheduledPowerEvent

Cancel a previously scheduled power event.

Declaration

IOReturn IOPMCancelScheduledPowerEvent(CFDateRef time_to_wake, CFStringRef my_id, CFStringRef type);

Parameters

time_to_wake

Cancel entry with this date and time.

my_id

Cancel entry with this name.

type

Type to cancel

Return Value

kIOReturnSuccess on success, otherwise on failure

Discussion

Arguments mirror those to IOPMSchedulePowerEvent. All arguments must match the original arguments from when the power on was scheduled. Must be called as root.

See Also

ScheduledEvents

IOPMCopyScheduledPowerEvents

List all scheduled system power events

IOPMSchedulePowerEvent

Schedule the machine to wake from sleep, power on, go to sleep, or shutdown.