ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOPMKeys.h

Include Path:

<IOKit/pwr_mgt>

Path:

/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/pwr_mgt/IOPMKeys.h

See Also:

Overview

This header defines C strings for use in accessing power management data. Note that all of these C strings must be converted to CFStrings before use. You can wrap them with the CFSTR() macro, or create a CFStringRef (that you must later CFRelease()) using CFStringCreateWithCString().

For additional information about power management for device drivers, see I/O Kit Fundamentals and Writing an I/O Kit Device Driver.



#defines


kIOPMAutoPowerOn


Value for scheduled power on from off state.

#define kIOPMAutoPowerOn "poweron" 


kIOPMAutoRestart


Value for scheduled restart.

#define kIOPMAutoRestart "restart" 


kIOPMAutoShutdown


Value for scheduled shutdown.

#define kIOPMAutoShutdown "shutdown" 


kIOPMAutoSleep


Value for scheduled sleep.

#define kIOPMAutoSleep "sleep" 


kIOPMAutoWake


Value for scheduled wake from sleep.

#define kIOPMAutoWake "wake" 


kIOPMAutoWakeOrPowerOn


Value for scheduled wake from sleep, or power on. The system will either wake OR power on, whichever is necessary.

#define kIOPMAutoWakeOrPowerOn "wakepoweron" 


kIOPMPowerEventAppNameKey


Key for the CFBundleIdentifier of the app that scheduled the power event. Value is a CFStringRef.

#define kIOPMPowerEventAppNameKey "scheduledby" 


kIOPMPowerEventTimeKey


Key for the time of the scheduled power event. Value is a CFDateRef.

#define kIOPMPowerEventTimeKey "time" 


kIOPMPowerEventTypeKey


Key for the type of power event. Value is a CFStringRef, with the c-string value of one of the "kIOPMAuto" strings.

#define kIOPMPowerEventTypeKey "eventtype" 


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23