this repo has no description
1#ifdef __cplusplus
2extern "C" {
3#endif
4
5#pragma pack(push, 2)
6
7enum {
8 kLSLaunchInhibitBGOnly= 0x00000080,
9 kLSLaunchNoParams = 0x00000800,
10 kLSLaunchStartClassic = 0x00020000,
11 kLSLaunchInClassic = 0x00040000,
12 kLSLaunchHasUntrustedContents = 0x00400000,
13};
14
15
16typedef struct LSLaunchFSRefSpec {
17 const FSRef * appRef;
18 ItemCount numDocs;
19 const FSRef * itemRefs;
20 const AEDesc * passThruParams;
21
22 LSLaunchFlags launchFlags;
23 void * asyncRefCon;
24} LSLaunchFSRefSpec;
25
26extern OSStatus
27LSOpenFSRef(
28 const FSRef * inRef,
29 FSRef * outLaunchedRef);
30
31extern OSStatus
32LSOpenFromRefSpec(
33 const LSLaunchFSRefSpec * inLaunchSpec,
34 FSRef * outLaunchedRef);
35
36typedef struct LSApplicationParameters {
37 CFIndex version;
38 LSLaunchFlags flags;
39 const FSRef * application;
40 void * asyncLaunchRefCon;
41 CFDictionaryRef environment;
42
43 CFArrayRef argv;
44
45 AppleEvent * initialEvent;
46} LSApplicationParameters;
47
48extern OSStatus
49LSOpenApplication(
50 const LSApplicationParameters * appParams,
51 ProcessSerialNumber * outPSN);
52
53extern OSStatus
54LSOpenItemsWithRole(
55 const FSRef * inItems,
56 CFIndex inItemCount,
57 LSRolesMask inRole,
58 const AEKeyDesc * inAEParam,
59 const LSApplicationParameters * inAppParams,
60 ProcessSerialNumber * outPSNs,
61 CFIndex inMaxPSNCount);
62
63extern OSStatus
64LSOpenURLsWithRole(
65 CFArrayRef inURLs,
66 LSRolesMask inRole,
67 const AEKeyDesc * inAEParam,
68 const LSApplicationParameters * inAppParams,
69 ProcessSerialNumber * outPSNs,
70 CFIndex inMaxPSNCount);
71
72#pragma pack(pop)
73
74#ifdef __cplusplus
75}
76#endif
77