Re: Powerdown notification
Re: Powerdown notification
- Subject: Re: Powerdown notification
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 18 Mar 2009 22:14:21 +0200
On Mar 18, 2009, at 8:07 PM, Ethan Bold wrote:
Hi Matt-
IOKit does not provide any notifications of system shutdown. The
IORegisterForSystemPower() API call that you make below only refers
to system sleep & wake power events, not shutdown events - the
argument messageType may be kIOPMMessageCanSystemSleep,
kIOPMMessageSystemWillSleep, kIOPMMessageSystemWillNotSleep,
kIOPMMessageSystemHasPoweredOn, kIOPMMessageSystemWillPowerOn.
That's all - no messages sent on shutdown.
What about the following constants:
#define kIOMessageCanSystemPowerOff iokit_common_msg(0x240)
#define kIOMessageSystemWillPowerOff iokit_common_msg(0x250)
#define kIOMessageSystemWillNotPowerOff iokit_common_msg(0x260)
They exist in the headers so one assumes they will be sent.
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden