Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jthemis

macrumors newbie
Original poster
Jun 22, 2018
4
0
USA
I was wondering if Mac does something similar to Microsoft. Microsoft sends WM_POWERBROADCAST messages to an application indicating a change in power is occurring and allowing the app to perform some task based on that event.

Does Mac provide a C programming interface that allows an app to respond/react to a power management change: IE shutdown, suspend, etc?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.