Returns information about the caller’s window server session.


func CGSessionCopyCurrentDictionary() -> CFDictionary?

Return Value

A window server session dictionary, or NULL if the caller is not running within a Quartz GUI session or the window server is disabled. You should release the dictionary when you are finished using it. For information about the key-value pairs in this dictionary, see Window Server Session Properties.

See Also

Getting Window Server Information

func CGWindowServerCFMachPort() -> CFMachPort?

Returns a Core Foundation Mach port (CFMachPort) that corresponds to the macOS window server.

func CGWindowLevelForKey(CGWindowLevelKey) -> CGWindowLevel

Returns the window level that corresponds to one of the standard window types.