Here's a method that works in 10.2 and later: First call GetProcessForPIDto turn pid into ProcessSerialNumber. Then call ProcessInformationCopyDictionaryto get the package id. (Added: these functions are deprecated in OS 10.9. I don’t know if they still exist in the SDK 10.10.)
source
share