Skip to content

Instantly share code, notes, and snippets.

@pudquick
Forked from jessepeterson/app_map.c
Created July 2, 2014 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pudquick/f1aef824e627eaae9727 to your computer and use it in GitHub Desktop.
Save pudquick/f1aef824e627eaae9727 to your computer and use it in GitHub Desktop.
#include <CoreFoundation/CoreFoundation.h>
CFPropertyListRef _CFPreferencesCopyApplicationMap(CFStringRef userName, CFStringRef hostName);
int main()
{
CFPropertyListRef app_map;
app_map = _CFPreferencesCopyApplicationMap(kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
if (app_map != NULL)
CFShow(app_map);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment