Returns a CFDictionary that describes the attached (AC) external power adapter (if any external power adapter is attached.
- macOS 10.6+
- Mac Catalyst 13.0+
Returns a CFDictionary on success. Caller must release the returned dictionary. If no adapter is attached, or if there's an error, returns NULL.
Use the kIOPSPowerAdapter... keys described in IOPSKeys.h to interpret the returned CFDictionary.