Mac OS 9
SegLoad.h
Go to the documentation of this file.
1 
19 #ifndef __SEGLOAD__
20 #define __SEGLOAD__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #if PRAGMA_ONCE
27 #pragma once
28 #endif
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 #if PRAGMA_IMPORT
36 #pragma import on
37 #endif
38 
39 #if PRAGMA_STRUCT_ALIGN
40 #pragma options align = mac68k
41 #elif PRAGMA_STRUCT_PACKPUSH
42 #pragma pack(push, 2)
43 #elif PRAGMA_STRUCT_PACK
44 #pragma pack(2)
45 #endif
46 
47 #if TARGET_CPU_68K && !TARGET_RT_MAC_CFM || !TARGET_OS_MAC
56  enum
57  {
58  appOpen = 0, /*Open the Document (s)*/
59  appPrint = 1 /*Print the Document (s)*/
60  };
61 
62  struct AppFile
63  {
64  short vRefNum;
65  OSType fType;
66  short versNum; /*versNum in high byte*/
67  Str255 fName;
68  };
69  typedef struct AppFile AppFile;
70 #if CALL_NOT_IN_CARBON
71 
110  </ pre>
111  * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
112  * \non_carbon_cfm not available * \carbon_lib not available * \mac_os_x not available *
113  /
114  void
115  CountAppFiles(short *message, short *count);
116 
148  void
149  GetAppFiles(short index, AppFile *theFile);
150 
174  void
175  ClrAppFiles(short index);
176 
209  void
210  GetAppParms(Str255 apName, short *apRefNum, Handle *apParam);
211 
212 #endif /* CALL_NOT_IN_CARBON */
213 
214 #if CALL_NOT_IN_CARBON
223  void
224  getappparms(char *apName, short *apRefNum, Handle *apParam);
225 
226 #endif /* CALL_NOT_IN_CARBON */
227 
228 #endif /* TARGET_CPU_68K && !TARGET_RT_MAC_CFM || !TARGET_OS_MAC */
229 
235 #if TARGET_CPU_68K
236 #if CALL_NOT_IN_CARBON
245  void
246  UnloadSeg(void *routineAddr);
247 
248 #endif /* CALL_NOT_IN_CARBON */
249 
250 #else
251 #define UnloadSeg(x)
252 #endif /* TARGET_CPU_68K */
253 
254  /* ExitToShell() has moved to Process.h*/
255 
256 #if PRAGMA_STRUCT_ALIGN
257 #pragma options align = reset
258 #elif PRAGMA_STRUCT_PACKPUSH
259 #pragma pack(pop)
260 #elif PRAGMA_STRUCT_PACK
261 #pragma pack()
262 #endif
263 
264 #ifdef PRAGMA_IMPORT_OFF
265 #pragma import off
266 #elif PRAGMA_IMPORT
267 #pragma import reset
268 #endif
269 
270 #ifdef __cplusplus
271 }
272 #endif
273 
274 #endif /* __SEGLOAD__ */
275 * /*/*/ * /
Basic Macintosh data types.
void getappparms(char *apName, short *apRefNum, Handle *apParam)
void GetAppFiles(short index, AppFile *theFile)
Get information about files selected in the Finder.
#define UnloadSeg(x)
Definition: SegLoad.h:251
void GetAppParms(Str255 apName, short *apRefNum, Handle *apParam)
Get application name, resource file reference, et.al.
void ClrAppFiles(short index)
Let the Finder know have processed a file.
Definition: SegLoad.h:63