CFPreferencesCopyApplicationList(_:_:)
Constructs and returns the list of all applications that have preferences in the scope of the specified user and host.
Declaration
func CFPreferencesCopyApplicationList(_ userName: CFString, _ hostName: CFString) -> CFArray?Parameters
- userName:
Kcfpreferencescurrentuser to search the current-user domain, otherwise Kcfpreferencesanyuser to search the any-user domain.
- hostName:
Kcfpreferencescurrenthost to search the current-host domain, otherwise Kcfpreferencesanyhost to search the any-host domain.
Return Value
The list of application IDs. Ownership follows the The Create Rule.