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?
Does Mac provide a C programming interface that allows an app to respond/react to a power management change: IE shutdown, suspend, etc?