Function

IOPMCopyScheduledPowerEvents

List all scheduled system power events

Declaration

CFArrayRef IOPMCopyScheduledPowerEvents(void);

Return Value

A CFArray of CFDictionaries of power events. The CFArray must be released by the caller. NULL if there are no scheduled events.

Discussion

Returns a CFArray of CFDictionaries of power events. Each CFDictionary contains keys for CFSTR(kIOPMPowerEventTimeKey), CFSTR(kIOPMPowerEventAppNameKey), and CFSTR(kIOPMPowerEventTypeKey).

See Also

ScheduledEvents

IOPMCancelScheduledPowerEvent

Cancel a previously scheduled power event.

IOPMSchedulePowerEvent

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