Mac OS 9
Components.h
Go to the documentation of this file.
1 
19 #ifndef __COMPONENTS__
20 #define __COMPONENTS__
21 
22 #ifndef __MACERRORS__
23 #include <MacErrors.h>
24 #endif
25 
26 #ifndef __MACTYPES__
27 #include <MacTypes.h>
28 #endif
29 
30 #ifndef __MIXEDMODE__
31 #include <MixedMode.h>
32 #endif
33 
34 #ifndef __FILES__
35 #include <Files.h>
36 #endif
37 
38 #if PRAGMA_ONCE
39 #pragma once
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 #if PRAGMA_IMPORT
48 #pragma import on
49 #endif
50 
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
54 #pragma pack(push, 2)
55 #elif PRAGMA_STRUCT_PACK
56 #pragma pack(2)
57 #endif
58 
59  enum
60  {
61  kAppleManufacturer = FOUR_CHAR_CODE('appl'),
63  FOUR_CHAR_CODE('thng'),
65  FOUR_CHAR_CODE('thga')
66  };
67 
68  enum
69  {
70  kAnyComponentType = 0,
71  kAnyComponentSubType = 0,
72  kAnyComponentManufacturer = 0,
73  kAnyComponentFlagsMask = 0
74  };
75 
76  enum
77  {
78  cmpIsMissing = 1L << 29,
79  cmpWantsRegisterMessage = 1L << 31
80  };
81 
82  enum
83  {
84  kComponentOpenSelect = -1,
93  -9,
96  -10
97  };
98 
100  enum
101  {
102  componentDoAutoVersion = (1 << 0),
103  componentWantsUnregister = (1 << 1),
104  componentAutoVersionIncludeFlags = (1 << 2),
105  componentHasMultiplePlatforms = (1 << 3),
106  componentLoadResident = (1 << 4)
107  };
108 
110  enum
111  {
112  defaultComponentIdentical = 0,
113  defaultComponentAnyFlags = 1,
114  defaultComponentAnyManufacturer = 2,
115  defaultComponentAnySubType = 4,
116  defaultComponentAnyFlagsAnyManufacturer =
117  (defaultComponentAnyFlags + defaultComponentAnyManufacturer),
118  defaultComponentAnyFlagsAnyManufacturerAnySubType =
119  (defaultComponentAnyFlags + defaultComponentAnyManufacturer +
120  defaultComponentAnySubType)
121  };
122 
124  enum
125  {
126  registerComponentGlobal = 1,
127  registerComponentNoDuplicates = 2,
128  registerComponentAfterExisting = 4,
129  registerComponentAliasesOnly = 8
130  };
131 
133  {
134  OSType componentType;
137  unsigned long
139  unsigned long
142  };
144 
146  {
147  OSType resType;
148  short resID;
149  };
150  typedef struct ResourceSpec ResourceSpec;
152  {
158  };
159  typedef struct ComponentResource ComponentResource;
163  {
164  long componentFlags;
166  short platformType;
167  };
170  {
171  long componentVersion;
174  };
177  {
178  long count;
179  ComponentPlatformInfo platformArray[1];
180  };
183  {
192  long count;
194  };
199  {
200  ComponentResource cr;
202  };
206  {
207  UInt8 flags;
208  UInt8 paramSize;
209  short what;
210  long params[1];
211  };
214  {
215  long data[1];
216  };
217  typedef struct ComponentRecord ComponentRecord;
218  typedef ComponentRecord *Component;
220  {
221  long data[1];
222  };
226  {
227  long data[1];
228  };
232  {
233  long data[1];
234  };
235  typedef struct RegisteredComponentInstanceRecord
238  typedef long ComponentResult;
239  enum
240  {
241  platform68k = 1,
243  2,
246  platformPowerPCNativeEntryPoint = 5
247  };
248 
249  enum
250  {
251  mpWorkFlagDoWork = (1 << 0),
252  mpWorkFlagDoCompletion = (1 << 1),
253  mpWorkFlagCopyWorkBlock = (1 << 2),
254  mpWorkFlagDontBlock = (1 << 3),
255  mpWorkFlagGetProcessorCount = (1 << 4),
256  mpWorkFlagGetIsRunning = (1 << 6)
257  };
258 
259  enum
260  {
261  cmpAliasNoFlags = 0,
262  cmpAliasOnlyThisFile = 1
263  };
264 
266  {
267  UInt32 headerSize;
268  UInt32 recordSize;
269  UInt32 workFlags;
270  UInt16 processorCount;
271  UInt8 unused;
272  UInt8 isRunning;
273  };
278  typedef CALLBACK_API(ComponentResult, ComponentMPWorkFunctionProcPtr)(
279  void *globalRefCon, ComponentMPWorkFunctionHeaderRecordPtr header);
280  typedef CALLBACK_API(ComponentResult,
281  ComponentRoutineProcPtr)(ComponentParameters *cp,
282  Handle componentStorage);
283  typedef CALLBACK_API(OSErr, GetMissingComponentResourceProcPtr)(
284  Component c, OSType resType, short resID, void *refCon, Handle *resource);
285  typedef STACK_UPP_TYPE(ComponentMPWorkFunctionProcPtr)
286  ComponentMPWorkFunctionUPP;
287  typedef STACK_UPP_TYPE(ComponentRoutineProcPtr) ComponentRoutineUPP;
288  typedef STACK_UPP_TYPE(GetMissingComponentResourceProcPtr)
289  GetMissingComponentResourceUPP;
295  typedef UniversalProcPtr ComponentFunctionUPP;
310  NewComponentFunctionUPP(ProcPtr userRoutine, ProcInfoType procInfo);
311 #if !OPAQUE_UPP_TYPES
312 #ifdef __cplusplus
313  inline DEFINE_API(ComponentFunctionUPP)
314  NewComponentFunctionUPP(ProcPtr userRoutine, ProcInfoType procInfo)
315  {
317  (ProcPtr)(userRoutine), (ProcInfoType)procInfo, GetCurrentArchitecture());
318  }
319 #else
320 #define NewComponentFunctionUPP(userRoutine, procInfo) \
321  ((ComponentFunctionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), \
322  (ProcInfoType)procInfo, \
323  GetCurrentArchitecture()))
324 #endif
325 #endif
326 
340  void
342 #if !OPAQUE_UPP_TYPES
343 #ifdef __cplusplus
344  inline DEFINE_API(void)
346  {
347  DisposeRoutineDescriptor(userUPP);
348  }
349 #else
350 #define DisposeComponentFunctionUPP(userUPP) (DisposeRoutineDescriptor(userUPP))
351 #endif
352 #endif
353 
354 #if TARGET_RT_MAC_CFM
368  extern UniversalProcPtr CallComponentUPP;
369 #endif
370 
371 #define ComponentCallNow(callNumber, paramSize) );
372 
382  Component
384 
394  OSErr
396 
406  Component
408 
418  long
420 
430  OSErr
432  Handle componentName, Handle componentInfo,
433  Handle componentIcon);
434 
444  long
446 
456  long
457  GetComponentTypeModSeed(OSType componentType);
458 
459  /*********************************************************
460  * Component Instance Allocation and dispatch routines
461  ********************************************************/
471  OSErr
473 
485 
495  OSErr
496  CloseComponent(ComponentInstance aComponentInstance);
497 
507  OSErr
509 
510  /*********************************************************
511  * Component aliases
512  ********************************************************/
522  Component
524 
525  /*********************************************************
526  * Component public resources and public string lists
527  ********************************************************/
538  OSErr
539  GetComponentPublicResource(Component aComponent, OSType resourceType,
540  short resourceID, Handle *theResource);
541 
550  OSErr
551  GetComponentPublicResourceList(OSType resourceType, short resourceID,
552  long flags, ComponentDescription *cd,
553  GetMissingComponentResourceUPP missingProc,
554  void *refCon, void *atomContainerPtr);
555 
564  OSErr
565  GetComponentPublicIndString(Component aComponent, Str255 theString,
566  short strListID, short index);
567 
568  /*********************************************************
569  * *
570  * CALLS MADE BY COMPONENTS *
571  * *
572  ********************************************************/
573  /*********************************************************
574  * Component Management routines
575  ********************************************************/
585  void
586  SetComponentInstanceError(ComponentInstance aComponentInstance, OSErr theError);
587 
597  long
599 
609  void
610  SetComponentRefcon(Component aComponent, long theRefcon);
611 
621  short
623 
633  OSErr
634  OpenAComponentResFile(Component aComponent, short *resRef);
635 
645  OSErr
646  CloseComponentResFile(short refnum);
647 
659  OSErr
660  GetComponentResource(Component aComponent, OSType resType, short resID,
661  Handle *theResource);
662 
672  OSErr
673  GetComponentIndString(Component aComponent, Str255 theString, short strListID,
674  short index);
675 
676  /*********************************************************
677  * Component Instance Management routines
678  ********************************************************/
688  Handle
690 
700  void
702  Handle theStorage);
703 
704 #if CALL_NOT_IN_CARBON
714  long
716 
726  void
727  SetComponentInstanceA5(ComponentInstance aComponentInstance, long theA5);
728 
729 #endif
740  long
742 
752  long
754 
764  long
766  ComponentFunctionUPP func);
767 
768 #if TARGET_CPU_PPC && TARGET_OS_MAC
777  long
778  CallComponentFunctionWithStorageProcInfo(Handle storage,
779  ComponentParameters *params,
780  ProcPtr func,
781  ProcInfoType funcProcInfo);
782 
783 #else
784 #define CallComponentFunctionWithStorageProcInfo(storage, params, func, \
785  funcProcInfo) \
786  CallComponentFunctionWithStorage(storage, params, func)
787 
788 #endif
799  long
801 
811  OSErr
812  SetDefaultComponent(Component aComponent, short flags);
813 
824  OpenDefaultComponent(OSType componentType, OSType componentSubType);
825 
835  OSErr
836  OpenADefaultComponent(OSType componentType, OSType componentSubType,
837  ComponentInstance *ci);
838 
848  Component
849  CaptureComponent(Component capturedComponent, Component capturingComponent);
850 
860  OSErr
862 
872  long
873  RegisterComponentResourceFile(short resRefNum, short global);
874 
884  OSErr
885  GetComponentIconSuite(Component aComponent, Handle *iconSuite);
886 
887  /*********************************************************
888  * *
889  * Direct calls to the Components *
890  * *
891  ********************************************************/
903  long
905 
915  long
917 
927  long
929 
941  ComponentResult
943 
953  ComponentResult
955 
965  ComponentResult
966  CallComponentCanDo(ComponentInstance ci, short ftnNumber);
967 
977  ComponentResult
979 
989  ComponentResult
991 
1001  ComponentResult
1003 
1013  ComponentResult
1015 
1025  ComponentResult
1027  ComponentMPWorkFunctionUPP *workFunction,
1028  void **refCon);
1029 
1038  ComponentResult
1040  short resourceID, Handle *resource);
1041 
1042 #if !TARGET_OS_MAC
1047 #if CALL_NOT_IN_CARBON
1057  ComponentResult
1059 
1060 #endif
1062 #endif
1076  ComponentResult
1078 
1088  ComponentMPWorkFunctionUPP
1089  NewComponentMPWorkFunctionUPP(ComponentMPWorkFunctionProcPtr userRoutine);
1090 #if !OPAQUE_UPP_TYPES
1091  enum
1092  {
1093  uppComponentMPWorkFunctionProcInfo = 0x000003F0
1094  };
1095 #ifdef __cplusplus
1096  inline ComponentMPWorkFunctionUPP
1097  NewComponentMPWorkFunctionUPP(ComponentMPWorkFunctionProcPtr userRoutine)
1098  {
1099  return (ComponentMPWorkFunctionUPP)NewRoutineDescriptor(
1100  (ProcPtr)(userRoutine), uppComponentMPWorkFunctionProcInfo,
1101  GetCurrentArchitecture());
1102  }
1103 #else
1104 #define NewComponentMPWorkFunctionUPP(userRoutine) \
1105  (ComponentMPWorkFunctionUPP) NewRoutineDescriptor( \
1106  (ProcPtr)(userRoutine), uppComponentMPWorkFunctionProcInfo, \
1107  GetCurrentArchitecture())
1108 #endif
1109 #endif
1110 
1119  ComponentRoutineUPP
1120  NewComponentRoutineUPP(ComponentRoutineProcPtr userRoutine);
1121 #if !OPAQUE_UPP_TYPES
1122  enum
1123  {
1124  uppComponentRoutineProcInfo = 0x000003F0
1125  };
1126 #ifdef __cplusplus
1127  inline ComponentRoutineUPP
1128  NewComponentRoutineUPP(ComponentRoutineProcPtr userRoutine)
1129  {
1130  return (ComponentRoutineUPP)NewRoutineDescriptor((ProcPtr)(userRoutine),
1131  uppComponentRoutineProcInfo,
1132  GetCurrentArchitecture());
1133  }
1134 #else
1135 #define NewComponentRoutineUPP(userRoutine) \
1136  (ComponentRoutineUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
1137  uppComponentRoutineProcInfo, \
1138  GetCurrentArchitecture())
1139 #endif
1140 #endif
1141 
1150  GetMissingComponentResourceUPP
1152  GetMissingComponentResourceProcPtr userRoutine);
1153 #if !OPAQUE_UPP_TYPES
1154  enum
1155  {
1156  uppGetMissingComponentResourceProcInfo = 0x0000FBE0
1157  };
1158 #ifdef __cplusplus
1159  inline GetMissingComponentResourceUPP NewGetMissingComponentResourceUPP(
1160  GetMissingComponentResourceProcPtr userRoutine)
1161  {
1162  return (GetMissingComponentResourceUPP)NewRoutineDescriptor(
1163  (ProcPtr)(userRoutine), uppGetMissingComponentResourceProcInfo,
1164  GetCurrentArchitecture());
1165  }
1166 #else
1167 #define NewGetMissingComponentResourceUPP(userRoutine) \
1168  (GetMissingComponentResourceUPP) NewRoutineDescriptor( \
1169  (ProcPtr)(userRoutine), uppGetMissingComponentResourceProcInfo, \
1170  GetCurrentArchitecture())
1171 #endif
1172 #endif
1173 
1182  void
1183  DisposeComponentMPWorkFunctionUPP(ComponentMPWorkFunctionUPP userUPP);
1184 #if !OPAQUE_UPP_TYPES
1185 #ifdef __cplusplus
1186  inline void
1187  DisposeComponentMPWorkFunctionUPP(ComponentMPWorkFunctionUPP userUPP)
1188  {
1189  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
1190  }
1191 #else
1192 #define DisposeComponentMPWorkFunctionUPP(userUPP) \
1193  DisposeRoutineDescriptor(userUPP)
1194 #endif
1195 #endif
1196 
1205  void
1206  DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP);
1207 #if !OPAQUE_UPP_TYPES
1208 #ifdef __cplusplus
1209  inline void DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP)
1210  {
1211  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
1212  }
1213 #else
1214 #define DisposeComponentRoutineUPP(userUPP) DisposeRoutineDescriptor(userUPP)
1215 #endif
1216 #endif
1217 
1226  void
1227  DisposeGetMissingComponentResourceUPP(GetMissingComponentResourceUPP userUPP);
1228 #if !OPAQUE_UPP_TYPES
1229 #ifdef __cplusplus
1230  inline void
1231  DisposeGetMissingComponentResourceUPP(GetMissingComponentResourceUPP userUPP)
1232  {
1233  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
1234  }
1235 #else
1236 #define DisposeGetMissingComponentResourceUPP(userUPP) \
1237  DisposeRoutineDescriptor(userUPP)
1238 #endif
1239 #endif
1240 
1249  ComponentResult
1252  ComponentMPWorkFunctionUPP userUPP);
1253 #if !OPAQUE_UPP_TYPES
1254 #ifdef __cplusplus
1255  inline ComponentResult
1256  InvokeComponentMPWorkFunctionUPP(void *globalRefCon,
1258  ComponentMPWorkFunctionUPP userUPP)
1259  {
1260  return (ComponentResult)CALL_TWO_PARAMETER_UPP(
1261  userUPP, uppComponentMPWorkFunctionProcInfo, globalRefCon, header);
1262  }
1263 #else
1264 #define InvokeComponentMPWorkFunctionUPP(globalRefCon, header, userUPP) \
1265  (ComponentResult) CALL_TWO_PARAMETER_UPP( \
1266  (userUPP), uppComponentMPWorkFunctionProcInfo, (globalRefCon), (header))
1267 #endif
1268 #endif
1269 
1278  ComponentResult
1279  InvokeComponentRoutineUPP(ComponentParameters *cp, Handle componentStorage,
1280  ComponentRoutineUPP userUPP);
1281 #if !OPAQUE_UPP_TYPES
1282 #ifdef __cplusplus
1283  inline ComponentResult InvokeComponentRoutineUPP(ComponentParameters *cp,
1284  Handle componentStorage,
1285  ComponentRoutineUPP userUPP)
1286  {
1287  return (ComponentResult)CALL_TWO_PARAMETER_UPP(
1288  userUPP, uppComponentRoutineProcInfo, cp, componentStorage);
1289  }
1290 #else
1291 #define InvokeComponentRoutineUPP(cp, componentStorage, userUPP) \
1292  (ComponentResult) CALL_TWO_PARAMETER_UPP( \
1293  (userUPP), uppComponentRoutineProcInfo, (cp), (componentStorage))
1294 #endif
1295 #endif
1296 
1305  OSErr
1306  InvokeGetMissingComponentResourceUPP(Component c, OSType resType, short resID,
1307  void *refCon, Handle *resource,
1308  GetMissingComponentResourceUPP userUPP);
1309 #if !OPAQUE_UPP_TYPES
1310 #ifdef __cplusplus
1311  inline OSErr
1312  InvokeGetMissingComponentResourceUPP(Component c, OSType resType, short resID,
1313  void *refCon, Handle *resource,
1314  GetMissingComponentResourceUPP userUPP)
1315  {
1316  return (OSErr)CALL_FIVE_PARAMETER_UPP(userUPP,
1317  uppGetMissingComponentResourceProcInfo,
1318  c, resType, resID, refCon, resource);
1319  }
1320 #else
1321 #define InvokeGetMissingComponentResourceUPP(c, resType, resID, refCon, \
1322  resource, userUPP) \
1323  (OSErr) CALL_FIVE_PARAMETER_UPP((userUPP), \
1324  uppGetMissingComponentResourceProcInfo, (c), \
1325  (resType), (resID), (refCon), (resource))
1326 #endif
1327 #endif
1328 
1329 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
1331 #define NewComponentMPWorkFunctionProc(userRoutine) \
1332  NewComponentMPWorkFunctionUPP(userRoutine)
1333 #define NewComponentRoutineProc(userRoutine) NewComponentRoutineUPP(userRoutine)
1334 #define NewGetMissingComponentResourceProc(userRoutine) \
1335  NewGetMissingComponentResourceUPP(userRoutine)
1336 #define CallComponentMPWorkFunctionProc(userRoutine, globalRefCon, header) \
1337  InvokeComponentMPWorkFunctionUPP(globalRefCon, header, userRoutine)
1338 #define CallComponentRoutineProc(userRoutine, cp, componentStorage) \
1339  InvokeComponentRoutineUPP(cp, componentStorage, userRoutine)
1340 #define CallGetMissingComponentResourceProc(userRoutine, c, resType, resID, \
1341  refCon, resource) \
1342  InvokeGetMissingComponentResourceUPP(c, resType, resID, refCon, resource, \
1343  userRoutine)
1344 #endif
1349  enum
1350  {
1351  uppComponentFunctionImplementedProcInfo = 0x000002F0,
1352  uppGetComponentVersionProcInfo = 0x000000F0,
1353  uppComponentSetTargetProcInfo = 0x000003F0,
1354  uppCallComponentOpenProcInfo = 0x000003F0,
1355  uppCallComponentCloseProcInfo = 0x000003F0,
1356  uppCallComponentCanDoProcInfo = 0x000002F0,
1357  uppCallComponentVersionProcInfo = 0x000000F0,
1358  uppCallComponentRegisterProcInfo = 0x000000F0,
1359  uppCallComponentTargetProcInfo = 0x000003F0,
1360  uppCallComponentUnregisterProcInfo = 0x000000F0,
1361  uppCallComponentGetMPWorkFunctionProcInfo = 0x00000FF0,
1362  uppCallComponentGetPublicResourceProcInfo = 0x00003BF0
1363  };
1364 
1365 #if PRAGMA_STRUCT_ALIGN
1366 #pragma options align = reset
1367 #elif PRAGMA_STRUCT_PACKPUSH
1368 #pragma pack(pop)
1369 #elif PRAGMA_STRUCT_PACK
1370 #pragma pack()
1371 #endif
1372 
1373 #ifdef PRAGMA_IMPORT_OFF
1374 #pragma import off
1375 #elif PRAGMA_IMPORT
1376 #pragma import reset
1377 #endif
1378 
1379 #ifdef __cplusplus
1380 }
1381 #endif
1382 
1383 #endif
Component CaptureComponent(Component capturedComponent, Component capturingComponent)
OSErr GetComponentIndString(Component aComponent, Str255 theString, short strListID, short index)
long GetComponentRefcon(Component aComponent)
OSErr GetComponentPublicResource(Component aComponent, OSType resourceType, short resourceID, Handle *theResource)
void SetComponentRefcon(Component aComponent, long theRefcon)
@ kComponentResourceType
Definition: Components.h:62
@ kComponentAliasResourceType
Definition: Components.h:64
UniversalProcPtr ComponentFunctionUPP
Definition: Components.h:295
long RegisterComponentResourceFile(short resRefNum, short global)
ComponentResult CallComponentClose(ComponentInstance ci, ComponentInstance self)
ComponentResult CallComponentDispatch(ComponentParameters *cp)
@ platformInterpreted
Definition: Components.h:244
@ platformWin32
Definition: Components.h:245
@ platformPowerPC
Definition: Components.h:242
ComponentFunctionUPP NewComponentFunctionUPP(ProcPtr userRoutine, ProcInfoType procInfo)
Component FindNextComponent(Component aComponent, ComponentDescription *looking)
long CallComponentFunction(ComponentParameters *params, ComponentFunctionUPP func)
long ComponentSetTarget(ComponentInstance ci, ComponentInstance target)
ComponentResult CallComponentGetMPWorkFunction(ComponentInstance ci, ComponentMPWorkFunctionUPP *workFunction, void **refCon)
#define NewGetMissingComponentResourceUPP(userRoutine)
Definition: Components.h:1167
long GetComponentTypeModSeed(OSType componentType)
OSErr GetComponentPublicResourceList(OSType resourceType, short resourceID, long flags, ComponentDescription *cd, GetMissingComponentResourceUPP missingProc, void *refCon, void *atomContainerPtr)
OSErr UnregisterComponent(Component aComponent)
void DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP)
OSErr SetDefaultComponent(Component aComponent, short flags)
void SetComponentInstanceA5(ComponentInstance aComponentInstance, long theA5)
ComponentResult InvokeComponentMPWorkFunctionUPP(void *globalRefCon, ComponentMPWorkFunctionHeaderRecordPtr header, ComponentMPWorkFunctionUPP userUPP)
ComponentResult CallComponentGetPublicResource(ComponentInstance ci, OSType resourceType, short resourceID, Handle *resource)
OSErr CloseComponentResFile(short refnum)
void SetComponentInstanceError(ComponentInstance aComponentInstance, OSErr theError)
OSErr GetComponentInfo(Component aComponent, ComponentDescription *cd, Handle componentName, Handle componentInfo, Handle componentIcon)
ComponentResult CallComponentRegister(ComponentInstance ci)
ComponentInstance OpenComponent(Component aComponent)
long CallComponentFunctionWithStorage(Handle storage, ComponentParameters *params, ComponentFunctionUPP func)
ComponentResult CallComponentVersion(ComponentInstance ci)
void SetComponentInstanceStorage(ComponentInstance aComponentInstance, Handle theStorage)
OSErr CloseComponent(ComponentInstance aComponentInstance)
OSErr OpenAComponentResFile(Component aComponent, short *resRef)
void DisposeComponentMPWorkFunctionUPP(ComponentMPWorkFunctionUPP userUPP)
OSErr OpenAComponent(Component aComponent, ComponentInstance *ci)
ComponentInstance OpenDefaultComponent(OSType componentType, OSType componentSubType)
OSErr GetComponentInstanceError(ComponentInstance aComponentInstance)
Component ResolveComponentAlias(Component aComponent)
ComponentResult CallComponentTarget(ComponentInstance ci, ComponentInstance target)
#define NewComponentRoutineUPP(userRoutine)
Definition: Components.h:1135
void DisposeGetMissingComponentResourceUPP(GetMissingComponentResourceUPP userUPP)
long GetComponentInstanceA5(ComponentInstance aComponentInstance)
#define NewComponentMPWorkFunctionUPP(userRoutine)
Definition: Components.h:1104
ComponentResult CallComponentOpen(ComponentInstance ci, ComponentInstance self)
OSErr InvokeGetMissingComponentResourceUPP(Component c, OSType resType, short resID, void *refCon, Handle *resource, GetMissingComponentResourceUPP userUPP)
OSErr GetComponentPublicIndString(Component aComponent, Str255 theString, short strListID, short index)
long DelegateComponentCall(ComponentParameters *originalParams, ComponentInstance ci)
Component RegisterComponentResource(ComponentResourceHandle cr, short global)
long CountComponents(ComponentDescription *looking)
long CountComponentInstances(Component aComponent)
Handle GetComponentInstanceStorage(ComponentInstance aComponentInstance)
void DisposeComponentFunctionUPP(ComponentFunctionUPP userUPP)
ComponentResult CallComponent(ComponentInstance ci, ComponentParameters *cp)
long ComponentFunctionImplemented(ComponentInstance ci, short ftnNumber)
long GetComponentListModSeed(void)
long GetComponentVersion(ComponentInstance ci)
@ kComponentUnregisterSelect
Definition: Components.h:90
@ kComponentTargetSelect
Definition: Components.h:89
@ kComponentGetPublicResourceSelect
Definition: Components.h:95
@ kComponentExecuteWiredActionSelect
Definition: Components.h:92
@ kComponentCloseSelect
Definition: Components.h:85
@ kComponentVersionSelect
Definition: Components.h:87
@ kComponentRegisterSelect
Definition: Components.h:88
@ kComponentGetMPWorkFunctionSelect
Definition: Components.h:91
@ kComponentCanDoSelect
Definition: Components.h:86
OSErr OpenADefaultComponent(OSType componentType, OSType componentSubType, ComponentInstance *ci)
ComponentResult CallComponentCanDo(ComponentInstance ci, short ftnNumber)
OSErr GetComponentResource(Component aComponent, OSType resType, short resID, Handle *theResource)
OSErr GetComponentIconSuite(Component aComponent, Handle *iconSuite)
OSErr UncaptureComponent(Component aComponent)
ComponentResult InvokeComponentRoutineUPP(ComponentParameters *cp, Handle componentStorage, ComponentRoutineUPP userUPP)
ComponentResult CallComponentUnregister(ComponentInstance ci)
short OpenComponentResFile(Component aComponent)
File Manager (MFS, HFS, and HFS+) Interfaces.
OSErr codes.
Basic Macintosh data types.
Mixed Mode Manager Interfaces.
unsigned long ProcInfoType
Definition: MixedMode.h:151
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Definition: Components.h:199
ComponentDescription aliasCD
Definition: Components.h:201
Definition: Components.h:133
OSType componentManufacturer
Definition: Components.h:136
unsigned long componentFlags
Definition: Components.h:138
unsigned long componentFlagsMask
Definition: Components.h:140
OSType componentSubType
Definition: Components.h:135
Definition: Components.h:220
Definition: Components.h:266
Definition: Components.h:206
UInt8 paramSize
Definition: Components.h:208
short what
Definition: Components.h:209
Definition: Components.h:177
Definition: Components.h:163
short platformType
Definition: Components.h:166
ResourceSpec component
Definition: Components.h:165
Definition: Components.h:214
Definition: Components.h:170
long componentRegisterFlags
Definition: Components.h:172
short componentIconFamily
Definition: Components.h:173
Definition: Components.h:152
ResourceSpec componentIcon
Definition: Components.h:157
ResourceSpec component
Definition: Components.h:154
ResourceSpec componentName
Definition: Components.h:155
ResourceSpec componentInfo
Definition: Components.h:156
Definition: Components.h:183
short componentIconFamily
Definition: Components.h:191
ResourceSpec componentName
Definition: Components.h:186
long componentRegisterFlags
Definition: Components.h:190
ResourceSpec component
Definition: Components.h:185
ResourceSpec componentIcon
Definition: Components.h:188
ComponentPlatformInfo platformArray[1]
Definition: Components.h:193
ResourceSpec componentInfo
Definition: Components.h:187
long componentVersion
Definition: Components.h:189
long count
Definition: Components.h:192
Definition: Components.h:232
Definition: Components.h:226
Definition: Components.h:146
short resID
Definition: Components.h:148