Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
1.5 kB · 77 lines
C
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778#ifdef __cplusplusextern "C" {#endif
#pragma pack(push, 2)
enum { kLSLaunchInhibitBGOnly= 0x00000080, kLSLaunchNoParams = 0x00000800, kLSLaunchStartClassic = 0x00020000, kLSLaunchInClassic = 0x00040000, kLSLaunchHasUntrustedContents = 0x00400000,};
typedef struct LSLaunchFSRefSpec { const FSRef * appRef; ItemCount numDocs; const FSRef * itemRefs; const AEDesc * passThruParams;
LSLaunchFlags launchFlags; void * asyncRefCon;} LSLaunchFSRefSpec;
extern OSStatusLSOpenFSRef( const FSRef * inRef, FSRef * outLaunchedRef);
extern OSStatusLSOpenFromRefSpec( const LSLaunchFSRefSpec * inLaunchSpec, FSRef * outLaunchedRef);
typedef struct LSApplicationParameters { CFIndex version; LSLaunchFlags flags; const FSRef * application; void * asyncLaunchRefCon; CFDictionaryRef environment;
CFArrayRef argv;
AppleEvent * initialEvent;} LSApplicationParameters;
extern OSStatusLSOpenApplication( const LSApplicationParameters * appParams, ProcessSerialNumber * outPSN);
extern OSStatusLSOpenItemsWithRole( const FSRef * inItems, CFIndex inItemCount, LSRolesMask inRole, const AEKeyDesc * inAEParam, const LSApplicationParameters * inAppParams, ProcessSerialNumber * outPSNs, CFIndex inMaxPSNCount);
extern OSStatusLSOpenURLsWithRole( CFArrayRef inURLs, LSRolesMask inRole, const AEKeyDesc * inAEParam, const LSApplicationParameters * inAppParams, ProcessSerialNumber * outPSNs, CFIndex inMaxPSNCount);
#pragma pack(pop)
#ifdef __cplusplus}#endif