kIOMessageSystemWillRestart not received in my daemon
kIOMessageSystemWillRestart not received in my daemon
- Subject: kIOMessageSystemWillRestart not received in my daemon
- From: Martin Bestmann <email@hidden>
- Date: Fri, 2 Jun 2006 18:08:52 +0200
Hi,
I need to find out if my daemon was launched after a restart or
during the normal install. Basically I need to now if a machine was
restarted. I thought IORegisterForSystemPower would do this but I do
not get the kIOMessageSystemWillRestart message.
Here is my code that registers for the notification.
gRootPort=IORegisterForSystemPower
(0,¬ify,SystemPowerChangedCallback,&anIterator);
if (gRootPort) CFRunLoopAddSource(CFRunLoopGetCurrent
(),IONotificationPortGetRunLoopSource(notify),kCFRunLoopDefaultMode);
I do get kIOMessageCanSystemSleep when the system is put to sleep.
Would user land app get kIOMessageSystemWillRestart messages?
Thanks,
Martin
_______________________________________________________
Martin Bestmann Pole Position
Software GmbH
Phone: +49-9134-9942-0 Weingasse 26
Fax: +49-9134-997911 91077 Neunkirchen am
Brand
e-mail: email@hidden Germany
Web: http://www.poleposition-sw.com
_______________________________________________
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