From my launch daemon for macOS (written in C++) I need to be able to count the number of monitors currently attached to the system and get some basic specs from the screen(s).
For that I am using the following functions:
Are they safe to call from a launch daemon? And if not, what shall I use instead?