1 {
2 File: CarbonCore/Components.h
3
4 Contains: Component Manager Interfaces.
5 The contents of this header file are deprecated.
6 Use Foundation or CoreFoundation bundles and plugins instead.
7
8 Copyright: � 1991-2011 by Apple Inc. All rights reserved.
9 }
10 {
11 Modified for use with Free Pascal
12 Version 308
13 Please report any bugs to <gpc@microbizz.nl>
14 }
15
16 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
17 {$mode macpas}
18 {$modeswitch cblocks}
19 {$packenum 1}
20 {$macro on}
21 {$inline on}
22 {$calling mwpascal}
23
24 unit Components;
25 interface
26 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
27 {$setc GAP_INTERFACES_VERSION := $0308}
28
29 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
30 {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
31 {$endc}
32
33 {$ifc defined CPUPOWERPC and defined CPUI386}
34 {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
35 {$endc}
36 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
37 {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
38 {$endc}
39
40 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
41 {$setc __ppc__ := 1}
42 {$elsec}
43 {$setc __ppc__ := 0}
44 {$endc}
45 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
46 {$setc __ppc64__ := 1}
47 {$elsec}
48 {$setc __ppc64__ := 0}
49 {$endc}
50 {$ifc not defined __i386__ and defined CPUI386}
51 {$setc __i386__ := 1}
52 {$elsec}
53 {$setc __i386__ := 0}
54 {$endc}
55 {$ifc not defined __x86_64__ and defined CPUX86_64}
56 {$setc __x86_64__ := 1}
57 {$elsec}
58 {$setc __x86_64__ := 0}
59 {$endc}
60 {$ifc not defined __arm__ and defined CPUARM}
61 {$setc __arm__ := 1}
62 {$elsec}
63 {$setc __arm__ := 0}
64 {$endc}
65 {$ifc not defined __arm64__ and defined CPUAARCH64}
66 {$setc __arm64__ := 1}
67 {$elsec}
68 {$setc __arm64__ := 0}
69 {$endc}
70
71 {$ifc defined cpu64}
72 {$setc __LP64__ := 1}
73 {$elsec}
74 {$setc __LP64__ := 0}
75 {$endc}
76
77
78 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
79 {$error Conflicting definitions for __ppc__ and __i386__}
80 {$endc}
81
82 {$ifc defined __ppc__ and __ppc__}
83 {$setc TARGET_CPU_PPC := TRUE}
84 {$setc TARGET_CPU_PPC64 := FALSE}
85 {$setc TARGET_CPU_X86 := FALSE}
86 {$setc TARGET_CPU_X86_64 := FALSE}
87 {$setc TARGET_CPU_ARM := FALSE}
88 {$setc TARGET_CPU_ARM64 := FALSE}
89 {$setc TARGET_OS_MAC := TRUE}
90 {$setc TARGET_OS_IPHONE := FALSE}
91 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
92 {$setc TARGET_OS_EMBEDDED := FALSE}
93 {$elifc defined __ppc64__ and __ppc64__}
94 {$setc TARGET_CPU_PPC := FALSE}
95 {$setc TARGET_CPU_PPC64 := TRUE}
96 {$setc TARGET_CPU_X86 := FALSE}
97 {$setc TARGET_CPU_X86_64 := FALSE}
98 {$setc TARGET_CPU_ARM := FALSE}
99 {$setc TARGET_CPU_ARM64 := FALSE}
100 {$setc TARGET_OS_MAC := TRUE}
101 {$setc TARGET_OS_IPHONE := FALSE}
102 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
103 {$setc TARGET_OS_EMBEDDED := FALSE}
104 {$elifc defined __i386__ and __i386__}
105 {$setc TARGET_CPU_PPC := FALSE}
106 {$setc TARGET_CPU_PPC64 := FALSE}
107 {$setc TARGET_CPU_X86 := TRUE}
108 {$setc TARGET_CPU_X86_64 := FALSE}
109 {$setc TARGET_CPU_ARM := FALSE}
110 {$setc TARGET_CPU_ARM64 := FALSE}
111 {$ifc defined iphonesim}
112 {$setc TARGET_OS_MAC := FALSE}
113 {$setc TARGET_OS_IPHONE := TRUE}
114 {$setc TARGET_IPHONE_SIMULATOR := TRUE}
115 {$elsec}
116 {$setc TARGET_OS_MAC := TRUE}
117 {$setc TARGET_OS_IPHONE := FALSE}
118 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
119 {$endc}
120 {$setc TARGET_OS_EMBEDDED := FALSE}
121 {$elifc defined __x86_64__ and __x86_64__}
122 {$setc TARGET_CPU_PPC := FALSE}
123 {$setc TARGET_CPU_PPC64 := FALSE}
124 {$setc TARGET_CPU_X86 := FALSE}
125 {$setc TARGET_CPU_X86_64 := TRUE}
126 {$setc TARGET_CPU_ARM := FALSE}
127 {$setc TARGET_CPU_ARM64 := FALSE}
128 {$ifc defined iphonesim}
129 {$setc TARGET_OS_MAC := FALSE}
130 {$setc TARGET_OS_IPHONE := TRUE}
131 {$setc TARGET_IPHONE_SIMULATOR := TRUE}
132 {$elsec}
133 {$setc TARGET_OS_MAC := TRUE}
134 {$setc TARGET_OS_IPHONE := FALSE}
135 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
136 {$endc}
137 {$setc TARGET_OS_EMBEDDED := FALSE}
138 {$elifc defined __arm__ and __arm__}
139 {$setc TARGET_CPU_PPC := FALSE}
140 {$setc TARGET_CPU_PPC64 := FALSE}
141 {$setc TARGET_CPU_X86 := FALSE}
142 {$setc TARGET_CPU_X86_64 := FALSE}
143 {$setc TARGET_CPU_ARM := TRUE}
144 {$setc TARGET_CPU_ARM64 := FALSE}
145 {$setc TARGET_OS_MAC := FALSE}
146 {$setc TARGET_OS_IPHONE := TRUE}
147 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
148 {$setc TARGET_OS_EMBEDDED := TRUE}
149 {$elifc defined __arm64__ and __arm64__}
150 {$setc TARGET_CPU_PPC := FALSE}
151 {$setc TARGET_CPU_PPC64 := FALSE}
152 {$setc TARGET_CPU_X86 := FALSE}
153 {$setc TARGET_CPU_X86_64 := FALSE}
154 {$setc TARGET_CPU_ARM := FALSE}
155 {$setc TARGET_CPU_ARM64 := TRUE}
156 {$ifc defined ios}
157 {$setc TARGET_OS_MAC := FALSE}
158 {$setc TARGET_OS_IPHONE := TRUE}
159 {$setc TARGET_OS_EMBEDDED := TRUE}
160 {$elsec}
161 {$setc TARGET_OS_MAC := TRUE}
162 {$setc TARGET_OS_IPHONE := FALSE}
163 {$setc TARGET_OS_EMBEDDED := FALSE}
164 {$endc}
165 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
166 {$elsec}
167 {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
168 {$endc}
169
170 {$ifc defined __LP64__ and __LP64__ }
171 {$setc TARGET_CPU_64 := TRUE}
172 {$elsec}
173 {$setc TARGET_CPU_64 := FALSE}
174 {$endc}
175
176 {$ifc defined FPC_BIG_ENDIAN}
177 {$setc TARGET_RT_BIG_ENDIAN := TRUE}
178 {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
179 {$elifc defined FPC_LITTLE_ENDIAN}
180 {$setc TARGET_RT_BIG_ENDIAN := FALSE}
181 {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
182 {$elsec}
183 {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
184 {$endc}
185 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
186 {$setc CALL_NOT_IN_CARBON := FALSE}
187 {$setc OLDROUTINENAMES := FALSE}
188 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
189 {$setc OPAQUE_UPP_TYPES := TRUE}
190 {$setc OTCARBONAPPLICATION := TRUE}
191 {$setc OTKERNEL := FALSE}
192 {$setc PM_USE_SESSION_APIS := TRUE}
193 {$setc TARGET_API_MAC_CARBON := TRUE}
194 {$setc TARGET_API_MAC_OS8 := FALSE}
195 {$setc TARGET_API_MAC_OSX := TRUE}
196 {$setc TARGET_CARBON := TRUE}
197 {$setc TARGET_CPU_68K := FALSE}
198 {$setc TARGET_CPU_MIPS := FALSE}
199 {$setc TARGET_CPU_SPARC := FALSE}
200 {$setc TARGET_OS_UNIX := FALSE}
201 {$setc TARGET_OS_WIN32 := FALSE}
202 {$setc TARGET_RT_MAC_68881 := FALSE}
203 {$setc TARGET_RT_MAC_CFM := FALSE}
204 {$setc TARGET_RT_MAC_MACHO := TRUE}
205 {$setc TYPED_FUNCTION_POINTERS := TRUE}
206 {$setc TYPE_BOOL := FALSE}
207 {$setc TYPE_EXTENDED := FALSE}
208 {$setc TYPE_LONGLONG := TRUE}
209 uses MacTypes,MacErrors,Files,MixedMode,Resources;
210 {$endc} {not MACOSALLINCLUDE}
211
212
213 {$ifc TARGET_OS_MAC}
214
215 {$ALIGN MAC68K}
216
217
218 const
219 kAppleManufacturer = FourCharCode('appl'); { Apple supplied components }
220 kComponentResourceType = FourCharCode('thng'); { a components resource type }
221 kComponentAliasResourceType = FourCharCode('thga'); { component alias resource type }
222
223 const
224 kAnyComponentType = 0;
225 kAnyComponentSubType = 0;
226 kAnyComponentManufacturer = 0;
227 kAnyComponentFlagsMask = 0;
228
229 const
230 cmpThreadSafe = 1 shl 28; { component is thread-safe }
231 cmpIsMissing = 1 shl 29;
232 cmpWantsRegisterMessage = 1 shl 31;
233
234 const
235 kComponentOpenSelect = -1; { ComponentInstance for this open }
236 kComponentCloseSelect = -2; { ComponentInstance for this close }
237 kComponentCanDoSelect = -3; { selector # being queried }
238 kComponentVersionSelect = -4; { no params }
239 kComponentRegisterSelect = -5; { no params }
240 kComponentTargetSelect = -6; { ComponentInstance for top of call chain }
241 kComponentUnregisterSelect = -7; { no params }
242 kComponentGetMPWorkFunctionSelect = -8; { some params }
243 kComponentExecuteWiredActionSelect = -9; { QTAtomContainer actionContainer, QTAtom actionAtom, QTCustomActionTargetPtr target, QTEventRecordPtr event }
244 kComponentGetPublicResourceSelect = -10; { OSType resourceType, short resourceId, Handle *resource }
245
246 { Component Resource Extension flags }
247 const
248 componentDoAutoVersion = 1 shl 0;
249 componentWantsUnregister = 1 shl 1;
250 componentAutoVersionIncludeFlags = 1 shl 2;
251 componentHasMultiplePlatforms = 1 shl 3;
252 componentLoadResident = 1 shl 4;
253
254
255 { Set Default Component flags }
256 const
257 defaultComponentIdentical = 0;
258 defaultComponentAnyFlags = 1;
259 defaultComponentAnyManufacturer = 2;
260 defaultComponentAnySubType = 4;
261 defaultComponentAnyFlagsAnyManufacturer = defaultComponentAnyFlags + defaultComponentAnyManufacturer;
262 defaultComponentAnyFlagsAnyManufacturerAnySubType = defaultComponentAnyFlags + defaultComponentAnyManufacturer + defaultComponentAnySubType;
263
264 { RegisterComponentResource flags }
265 const
266 registerComponentGlobal = 1;
267 registerComponentNoDuplicates = 2;
268 registerComponentAfterExisting = 4;
269 registerComponentAliasesOnly = 8;
270
271
272 type
273 ComponentDescriptionPtr = ^ComponentDescription;
274 ComponentDescription = record
275 componentType: OSType; { A unique 4-byte code indentifying the command set }
276 componentSubType: OSType; { Particular flavor of this instance }
277 componentManufacturer: OSType; { Vendor indentification }
278 componentFlags: UInt32; { 8 each for Component,Type,SubType,Manuf/revision }
279 componentFlagsMask: UInt32; { Mask for specifying which flags to consider in search, zero during registration }
280 end;
281
282 type
283 ResourceSpecPtr = ^ResourceSpec;
284 ResourceSpec = record
285 resType: OSType; { 4-byte code }
286 resID: SInt16; { }
287 end;
288 type
289 ComponentResource = record
290 cd: ComponentDescription; { Registration parameters }
291 component: ResourceSpec; { resource where Component code is found }
292 componentName: ResourceSpec; { name string resource }
293 componentInfo: ResourceSpec; { info string resource }
294 componentIcon: ResourceSpec; { icon resource }
295 end;
296 ComponentResourcePtr = ^ComponentResource;
297 type
298 ComponentResourceHandle = ^ComponentResourcePtr;
299 ComponentPlatformInfo = record
300 componentFlags: SInt32; { flags of Component }
301 component: ResourceSpec; { resource where Component code is found }
302 platformType: SInt16; { gestaltSysArchitecture result }
303 end;
304 type
305 ComponentResourceExtensionPtr = ^ComponentResourceExtension;
306 ComponentResourceExtension = record
307 componentVersion: SInt32; { version of Component }
308 componentRegisterFlags: SInt32; { flags for registration }
309 componentIconFamily: SInt16; { resource id of Icon Family }
310 end;
311 type
312 ComponentPlatformInfoArrayPtr = ^ComponentPlatformInfoArray;
313 ComponentPlatformInfoArray = record
314 count: SInt32;
315 platformArray: array [0..0] of ComponentPlatformInfo;
316 end;
317 type
318 ExtComponentResource = record
319 cd: ComponentDescription; { registration parameters }
320 component: ResourceSpec; { resource where Component code is found }
321 componentName: ResourceSpec; { name string resource }
322 componentInfo: ResourceSpec; { info string resource }
323 componentIcon: ResourceSpec; { icon resource }
324 componentVersion: SInt32; { version of Component }
325 componentRegisterFlags: SInt32; { flags for registration }
326 componentIconFamily: SInt16; { resource id of Icon Family }
327 count: SInt32; { elements in platformArray }
328 platformArray: array [0..0] of ComponentPlatformInfo;
329 end;
330 ExtComponentResourcePtr = ^ExtComponentResource;
331 type
332 ExtComponentResourceHandle = ^ExtComponentResourcePtr;
333 ComponentAliasResource = record
334 cr: ComponentResource; { Registration parameters }
335 aliasCD: ComponentDescription; { component alias description }
336 end;
337 { Structure received by Component: }
338 type
339 ComponentParametersPtr = ^ComponentParameters;
340 ComponentParameters = record
341 flags: UInt8; { call modifiers: sync/async, deferred, immed, etc }
342 paramSize: UInt8; { size in bytes of actual parameters passed to this call }
343 what: SInt16; { routine selector, negative for Component management calls }
344 {$ifc TARGET_CPU_64}
345
346 padding: UInt32;
347 {$endc} {TARGET_CPU_64}
348
349 params: array[0..0] of SIGNEDLONG; { actual parameters for the indicated routine }
350 end;
351 type
352 ComponentRecord = record
353 data: array [0..0] of SIGNEDLONG;
354 end;
355 type
356 Component = ^ComponentRecord;
357 ComponentInstanceRecordPtr = ^ComponentInstanceRecord;
358 ComponentInstanceRecord = record
359 data: array [0..0] of SIGNEDLONG;
360 end;
361 type
362 ComponentInstance = ^ComponentInstanceRecord;
363 RegisteredComponentRecord = record
364 data: array [0..0] of SIGNEDLONG;
365 end;
366 type
367 RegisteredComponentRecordPtr = ^RegisteredComponentRecord;
368 type
369 RegisteredComponentInstanceRecord = record
370 data: array [0..0] of SIGNEDLONG;
371 end;
372 RegisteredComponentInstanceRecordPtr = ^RegisteredComponentInstanceRecord;
373 type
374 ComponentResult = SInt32;
375 const
376 platform68k = 1; { platform type (response from gestaltComponentPlatform) }
377 platformPowerPC = 2; { (when gestaltComponentPlatform is not implemented, use }
378 platformInterpreted = 3; { gestaltSysArchitecture) }
379 platformWin32 = 4;
380 platformPowerPCNativeEntryPoint = 5;
381 platformIA32NativeEntryPoint = 6;
382 platformPowerPC64NativeEntryPoint = 7;
383 platformX86_64NativeEntryPoint = 8;
384
385 const
386 platformIRIXmips = 1000;
387 platformSunOSsparc = 1100;
388 platformSunOSintel = 1101;
389 platformLinuxppc = 1200;
390 platformLinuxintel = 1201;
391 platformAIXppc = 1300;
392 platformNeXTIntel = 1400;
393 platformNeXTppc = 1401;
394 platformNeXTsparc = 1402;
395 platformNeXT68k = 1403;
396 platformMacOSx86 = 1500;
397
398 const
399 mpWorkFlagDoWork = 1 shl 0;
400 mpWorkFlagDoCompletion = 1 shl 1;
401 mpWorkFlagCopyWorkBlock = 1 shl 2;
402 mpWorkFlagDontBlock = 1 shl 3;
403 mpWorkFlagGetProcessorCount = 1 shl 4;
404 mpWorkFlagGetIsRunning = 1 shl 6;
405
406 const
407 cmpAliasNoFlags = 0;
408 cmpAliasOnlyThisFile = 1;
409
410 type
411 CSComponentsThreadMode = UInt32;
412 const
413 kCSAcceptAllComponentsMode = 0;
414 kCSAcceptThreadSafeComponentsOnlyMode = 1;
415
416 {
417 * CSSetComponentsThreadMode()
418 *
419 * Summary:
420 * Set whether or not using thread-unsafe components is allowed on
421 * the current thread.
422 *
423 * Discussion:
424 * When set to kCSAcceptThreadSafeComponentsOnlyMode, the current
425 * thread can only make thread-safe calls. Applications and other
426 * high-level code that wants to call QuickTime (and other) APIs
427 * from preemptive threads should call SetComponentsThreadMode(
428 * kCSAcceptThreadSafeComponentsOnlyMode ); from their thread
429 * beforehand. The safeguard flag should only be left
430 * kCSAcceptAllComponentsMode for the main thread and other threads
431 * that participate in cooperative locking with it (such as the
432 * Carbon Thread Manager-style cooperative threads and application
433 * threads that perform private locking).
434 *
435 * Mac OS X threading:
436 * Thread safe since version 10.3
437 *
438 * Parameters:
439 *
440 * mode:
441 * The thread-safety mode in current thread.
442 *
443 * Availability:
444 * Mac OS X: in version 10.3 and later in CoreServices.framework
445 * CarbonLib: not available
446 * Non-Carbon CFM: not available
447 }
448 procedure CSSetComponentsThreadMode( mode: CSComponentsThreadMode ); external name '_CSSetComponentsThreadMode';
449 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_3, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
450
451
452 {
453 * CSGetComponentsThreadMode()
454 *
455 * Summary:
456 * Get the current thread's thread-safety mode.
457 *
458 * Discussion:
459 * Returns kCSAcceptThreadSafeComponentsOnlyMode if only thread-safe
460 * components are allowed in current thread and
461 * kCSAcceptAllComponentsMode if all components are accepted
462 *
463 * Mac OS X threading:
464 * Thread safe since version 10.3
465 *
466 * Availability:
467 * Mac OS X: in version 10.3 and later in CoreServices.framework
468 * CarbonLib: not available
469 * Non-Carbon CFM: not available
470 }
CSGetComponentsThreadModenull471 function CSGetComponentsThreadMode: CSComponentsThreadMode; external name '_CSGetComponentsThreadMode';
472 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_3, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
473
474
475 type
476 ComponentMPWorkFunctionHeaderRecord = record
477 headerSize: UInt32;
478 recordSize: UInt32;
479 workFlags: UInt32;
480 processorCount: UInt16;
481 unused: UInt8;
482 isRunning: UInt8;
483 end;
484 ComponentMPWorkFunctionHeaderRecordPtr = ^ComponentMPWorkFunctionHeaderRecord;
485 type
globalRefConnull486 ComponentMPWorkFunctionProcPtr = function( globalRefCon: UnivPtr; header: ComponentMPWorkFunctionHeaderRecordPtr ): ComponentResult;
varnull487 ComponentRoutineProcPtr = function( var cp: ComponentParameters; componentStorage: Handle ): ComponentResult;
cnull488 GetMissingComponentResourceProcPtr = function( c: Component; resType: OSType; resID: SInt16; refCon: UnivPtr; var resource: Handle ): OSErr;
489 ComponentMPWorkFunctionUPP = ComponentMPWorkFunctionProcPtr;
490 ComponentRoutineUPP = ComponentRoutineProcPtr;
491 GetMissingComponentResourceUPP = GetMissingComponentResourceProcPtr;
492 {
493 The parameter list for each ComponentFunction is unique. It is
494 therefore up to users to create the appropriate procInfo for their
495 own ComponentFunctions where necessary.
496 }
497 type
498 ComponentFunctionUPP = UniversalProcPtr;
499 {
500 * NewComponentFunctionUPP()
501 *
502 * Discussion:
503 * For use in writing a Carbon compliant Component. It is used to
504 * create a ComponentFunctionUPP needed to call
505 * CallComponentFunction in the Components dispatch routine.
506 *
507 * Mac OS X threading:
508 * Thread safe since version 10.0
509 *
510 * Availability:
511 * Mac OS X: in version 10.0 and later in CoreServices.framework
512 * CarbonLib: in CarbonLib 1.0 and later
513 * Non-Carbon CFM: available as macro/inline
514 }
NewComponentFunctionUPPnull515 function NewComponentFunctionUPP( userRoutine: ProcPtr; procInfo: ProcInfoType ): ComponentFunctionUPP; external name '_NewComponentFunctionUPP';
516 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
517
518
519 {
520 * DisposeComponentFunctionUPP()
521 *
522 * Discussion:
523 * For use in writing a Carbon compliant Component. It is used to
524 * dispose of a ComponentFunctionUPP created by
525 * NewComponentFunctionUPP.
526 *
527 * Mac OS X threading:
528 * Thread safe since version 10.0
529 *
530 * Availability:
531 * Mac OS X: in version 10.0 and later in CoreServices.framework
532 * CarbonLib: in CarbonLib 1.0 and later
533 * Non-Carbon CFM: available as macro/inline
534 }
535 procedure DisposeComponentFunctionUPP( userUPP: ComponentFunctionUPP ); external name '_DisposeComponentFunctionUPP';
536 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
537
538
539 {*******************************************************
540 * *
541 * APPLICATION LEVEL CALLS *
542 * *
543 *******************************************************}
544 {*******************************************************
545 * Component Database Add, Delete, and Query Routines
546 *******************************************************}
547 {
548 * RegisterComponent()
549 *
550 * Mac OS X threading:
551 * Thread safe since version 10.3
552 *
553 * Availability:
554 * Mac OS X: in version 10.0 and later in CoreServices.framework
555 * CarbonLib: in CarbonLib 1.0 and later
556 * Non-Carbon CFM: in InterfaceLib 7.1 and later
557 * Windows: in qtmlClient.lib 3.0 and later
558 }
RegisterComponentnull559 function RegisterComponent( var cd: ComponentDescription; componentEntryPoint: ComponentRoutineUPP; global: SInt16; componentName: Handle; componentInfo: Handle; componentIcon: Handle ): Component; external name '_RegisterComponent';
560 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
561
562
563 {
564 * RegisterComponentResource()
565 *
566 * Mac OS X threading:
567 * Not thread safe
568 *
569 * Availability:
570 * Mac OS X: in version 10.0 and later in CoreServices.framework
571 * CarbonLib: in CarbonLib 1.0 and later
572 * Non-Carbon CFM: in InterfaceLib 7.1 and later
573 * Windows: in qtmlClient.lib 3.0 and later
574 }
RegisterComponentResourcenull575 function RegisterComponentResource( cr: ComponentResourceHandle; global: SInt16 ): Component; external name '_RegisterComponentResource';
576 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
577
578
579 {
580 * UnregisterComponent()
581 *
582 * Mac OS X threading:
583 * Not thread safe
584 *
585 * Availability:
586 * Mac OS X: in version 10.0 and later in CoreServices.framework
587 * CarbonLib: in CarbonLib 1.0 and later
588 * Non-Carbon CFM: in InterfaceLib 7.1 and later
589 * Windows: in qtmlClient.lib 3.0 and later
590 }
UnregisterComponentnull591 function UnregisterComponent( aComponent: Component ): OSErr; external name '_UnregisterComponent';
592 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
593
594
595 {
596 * FindNextComponent()
597 *
598 * Mac OS X threading:
599 * Thread safe since version 10.3
600 *
601 * Availability:
602 * Mac OS X: in version 10.0 and later in CoreServices.framework
603 * CarbonLib: in CarbonLib 1.0 and later
604 * Non-Carbon CFM: in InterfaceLib 7.1 and later
605 * Windows: in qtmlClient.lib 3.0 and later
606 }
FindNextComponentnull607 function FindNextComponent( aComponent: Component; var looking: ComponentDescription ): Component; external name '_FindNextComponent';
608 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
609
610
611 {
612 * CountComponents()
613 *
614 * Mac OS X threading:
615 * Thread safe since version 10.3
616 *
617 * Availability:
618 * Mac OS X: in version 10.0 and later in CoreServices.framework
619 * CarbonLib: in CarbonLib 1.0 and later
620 * Non-Carbon CFM: in InterfaceLib 7.1 and later
621 * Windows: in qtmlClient.lib 3.0 and later
622 }
CountComponentsnull623 function CountComponents( var looking: ComponentDescription ): SIGNEDLONG; external name '_CountComponents';
624 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
625
626
627 {
628 * GetComponentInfo()
629 *
630 * Mac OS X threading:
631 * Thread safe since version 10.3
632 *
633 * Availability:
634 * Mac OS X: in version 10.0 and later in CoreServices.framework
635 * CarbonLib: in CarbonLib 1.0 and later
636 * Non-Carbon CFM: in InterfaceLib 7.1 and later
637 * Windows: in qtmlClient.lib 3.0 and later
638 }
GetComponentInfonull639 function GetComponentInfo( aComponent: Component; var cd: ComponentDescription; componentName: Handle; componentInfo: Handle; componentIcon: Handle ): OSErr; external name '_GetComponentInfo';
640 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
641
642
643 {
644 * GetComponentListModSeed()
645 *
646 * Mac OS X threading:
647 * Not thread safe
648 *
649 * Availability:
650 * Mac OS X: in version 10.0 and later in CoreServices.framework
651 * CarbonLib: in CarbonLib 1.0 and later
652 * Non-Carbon CFM: in InterfaceLib 7.1 and later
653 * Windows: in qtmlClient.lib 3.0 and later
654 }
GetComponentListModSeednull655 function GetComponentListModSeed: SInt32; external name '_GetComponentListModSeed';
656 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
657
658
659 {
660 * GetComponentTypeModSeed()
661 *
662 * Mac OS X threading:
663 * Not thread safe
664 *
665 * Availability:
666 * Mac OS X: in version 10.0 and later in CoreServices.framework
667 * CarbonLib: in CarbonLib 1.0 and later
668 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
669 * Windows: in qtmlClient.lib 3.0 and later
670 }
GetComponentTypeModSeednull671 function GetComponentTypeModSeed( componentType: OSType ): SInt32; external name '_GetComponentTypeModSeed';
672 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
673
674
675 {*******************************************************
676 * Component Instance Allocation and dispatch routines
677 *******************************************************}
678 {
679 * OpenAComponent()
680 *
681 * Mac OS X threading:
682 * Thread safe since version 10.3
683 *
684 * Availability:
685 * Mac OS X: in version 10.0 and later in CoreServices.framework
686 * CarbonLib: in CarbonLib 1.0 and later
687 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
688 * Windows: in qtmlClient.lib 3.0 and later
689 }
OpenAComponentnull690 function OpenAComponent( aComponent: Component; var ci: ComponentInstance ): OSErr; external name '_OpenAComponent';
691 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
692
693
694 {
695 * OpenComponent()
696 *
697 * Mac OS X threading:
698 * Thread safe since version 10.3
699 *
700 * Availability:
701 * Mac OS X: in version 10.0 and later in CoreServices.framework
702 * CarbonLib: in CarbonLib 1.0 and later
703 * Non-Carbon CFM: in InterfaceLib 7.1 and later
704 * Windows: in qtmlClient.lib 3.0 and later
705 }
OpenComponentnull706 function OpenComponent( aComponent: Component ): ComponentInstance; external name '_OpenComponent';
707 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
708
709
710 {
711 * CloseComponent()
712 *
713 * Mac OS X threading:
714 * Thread safe since version 10.3
715 *
716 * Availability:
717 * Mac OS X: in version 10.0 and later in CoreServices.framework
718 * CarbonLib: in CarbonLib 1.0 and later
719 * Non-Carbon CFM: in InterfaceLib 7.1 and later
720 * Windows: in qtmlClient.lib 3.0 and later
721 }
CloseComponentnull722 function CloseComponent( aComponentInstance: ComponentInstance ): OSErr; external name '_CloseComponent';
723 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
724
725
726 {
727 * GetComponentInstanceError()
728 *
729 * Mac OS X threading:
730 * Thread safe since version 10.4
731 *
732 * Availability:
733 * Mac OS X: in version 10.0 and later in CoreServices.framework
734 * CarbonLib: in CarbonLib 1.0 and later
735 * Non-Carbon CFM: in InterfaceLib 7.1 and later
736 * Windows: in qtmlClient.lib 3.0 and later
737 }
GetComponentInstanceErrornull738 function GetComponentInstanceError( aComponentInstance: ComponentInstance ): OSErr; external name '_GetComponentInstanceError';
739 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
740
741
742 {*******************************************************
743 * Component aliases
744 *******************************************************}
745 {
746 * ResolveComponentAlias()
747 *
748 * Mac OS X threading:
749 * Thread safe since version 10.3
750 *
751 * Availability:
752 * Mac OS X: in version 10.0 and later in CoreServices.framework
753 * CarbonLib: in CarbonLib 1.0 and later
754 * Non-Carbon CFM: in InterfaceLib via QuickTime 3.0 and later
755 * Windows: in qtmlClient.lib 3.0 and later
756 }
ResolveComponentAliasnull757 function ResolveComponentAlias( aComponent: Component ): Component; external name '_ResolveComponentAlias';
758 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
759
760
761 {*******************************************************
762 * Component public resources and public string lists
763 *******************************************************}
764 { Note: GetComponentPublicResource returns a Handle, not a resource. The caller must dispose it with DisposeHandle. }
765 {
766 * GetComponentPublicResource()
767 *
768 * Mac OS X threading:
769 * Thread safe since version 10.3
770 *
771 * Availability:
772 * Mac OS X: in version 10.0 and later in CoreServices.framework
773 * CarbonLib: in CarbonLib 1.0.2 and later
774 * Non-Carbon CFM: in InterfaceLib via QuickTime 4.0 and later
775 }
GetComponentPublicResourcenull776 function GetComponentPublicResource( aComponent: Component; resourceType: OSType; resourceID: SInt16; var theResource: Handle ): OSErr; external name '_GetComponentPublicResource';
777 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
778
779
780 {
781 * GetComponentPublicResourceList()
782 *
783 * Mac OS X threading:
784 * Thread safe since version 10.3
785 *
786 * Availability:
787 * Mac OS X: in version 10.0 and later in CoreServices.framework
788 * CarbonLib: in CarbonLib 1.0.2 and later
789 * Non-Carbon CFM: in InterfaceLib via QuickTime 4.0 and later
790 }
GetComponentPublicResourceListnull791 function GetComponentPublicResourceList( resourceType: OSType; resourceID: SInt16; flags: SInt32; var cd: ComponentDescription; missingProc: GetMissingComponentResourceUPP; refCon: UnivPtr; atomContainerPtr: UnivPtr ): OSErr; external name '_GetComponentPublicResourceList';
792 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
793
794
795 {
796 * GetComponentPublicIndString()
797 *
798 * Mac OS X threading:
799 * Thread safe since version 10.3
800 *
801 * Availability:
802 * Mac OS X: in version 10.0 and later in CoreServices.framework
803 * CarbonLib: in CarbonLib 1.3 and later
804 * Non-Carbon CFM: in InterfaceLib via QuickTime 4.0 and later
805 }
GetComponentPublicIndStringnull806 function GetComponentPublicIndString( aComponent: Component; var theString: Str255; strListID: SInt16; index: SInt16 ): OSErr; external name '_GetComponentPublicIndString';
807 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
808
809
810 {*******************************************************
811 * *
812 * CALLS MADE BY COMPONENTS *
813 * *
814 *******************************************************}
815 {*******************************************************
816 * Component Management routines
817 *******************************************************}
818 {
819 * SetComponentInstanceError()
820 *
821 * Mac OS X threading:
822 * Thread safe since version 10.4
823 *
824 * Availability:
825 * Mac OS X: in version 10.0 and later in CoreServices.framework
826 * CarbonLib: in CarbonLib 1.0 and later
827 * Non-Carbon CFM: in InterfaceLib 7.1 and later
828 * Windows: in qtmlClient.lib 3.0 and later
829 }
830 procedure SetComponentInstanceError( aComponentInstance: ComponentInstance; theError: OSErr ); external name '_SetComponentInstanceError';
831 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
832
833
834 {
835 * GetComponentRefcon()
836 *
837 * Mac OS X threading:
838 * Thread safe since version 10.4
839 *
840 * Availability:
841 * Mac OS X: in version 10.0 and later in CoreServices.framework
842 * CarbonLib: in CarbonLib 1.0 and later
843 * Non-Carbon CFM: in InterfaceLib 7.1 and later
844 * Windows: in qtmlClient.lib 3.0 and later
845 }
GetComponentRefconnull846 function GetComponentRefcon( aComponent: Component ): SIGNEDLONG; external name '_GetComponentRefcon';
847 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
848
849
850 {
851 * SetComponentRefcon()
852 *
853 * Mac OS X threading:
854 * Thread safe since version 10.4
855 *
856 * Availability:
857 * Mac OS X: in version 10.0 and later in CoreServices.framework
858 * CarbonLib: in CarbonLib 1.0 and later
859 * Non-Carbon CFM: in InterfaceLib 7.1 and later
860 * Windows: in qtmlClient.lib 3.0 and later
861 }
862 procedure SetComponentRefcon( aComponent: Component; theRefcon: SIGNEDLONG ); external name '_SetComponentRefcon';
863 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
864
865
866 {
867 * OpenComponentResFile()
868 *
869 * Mac OS X threading:
870 * Not thread safe
871 *
872 * Availability:
873 * Mac OS X: in version 10.0 and later in CoreServices.framework
874 * CarbonLib: in CarbonLib 1.0 and later
875 * Non-Carbon CFM: in InterfaceLib 7.1 and later
876 * Windows: in qtmlClient.lib 3.0 and later
877 }
OpenComponentResFilenull878 function OpenComponentResFile( aComponent: Component ): ResFileRefNum; external name '_OpenComponentResFile';
879 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
880
881
882 {
883 * OpenAComponentResFile()
884 *
885 * Mac OS X threading:
886 * Not thread safe
887 *
888 * Availability:
889 * Mac OS X: in version 10.0 and later in CoreServices.framework
890 * CarbonLib: in CarbonLib 1.0 and later
891 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
892 * Windows: in qtmlClient.lib 3.0 and later
893 }
OpenAComponentResFilenull894 function OpenAComponentResFile( aComponent: Component; var resRef: ResFileRefNum ): OSErr; external name '_OpenAComponentResFile';
895 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
896
897
898 {
899 * CloseComponentResFile()
900 *
901 * Mac OS X threading:
902 * Not thread safe
903 *
904 * Availability:
905 * Mac OS X: in version 10.0 and later in CoreServices.framework
906 * CarbonLib: in CarbonLib 1.0 and later
907 * Non-Carbon CFM: in InterfaceLib 7.1 and later
908 * Windows: in qtmlClient.lib 3.0 and later
909 }
CloseComponentResFilenull910 function CloseComponentResFile( refnum: ResFileRefNum ): OSErr; external name '_CloseComponentResFile';
911 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
912
913
914 { Note: GetComponentResource returns a Handle, not a resource. The caller must dispose it with DisposeHandle. }
915 {
916 * GetComponentResource()
917 *
918 * Mac OS X threading:
919 * Thread safe since version 10.3
920 *
921 * Availability:
922 * Mac OS X: in version 10.0 and later in CoreServices.framework
923 * CarbonLib: in CarbonLib 1.0 and later
924 * Non-Carbon CFM: in InterfaceLib via QuickTime 3.0 and later
925 * Windows: in qtmlClient.lib 3.0 and later
926 }
GetComponentResourcenull927 function GetComponentResource( aComponent: Component; resType: OSType; resID: SInt16; var theResource: Handle ): OSErr; external name '_GetComponentResource';
928 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
929
930
931 {
932 * GetComponentIndString()
933 *
934 * Mac OS X threading:
935 * Thread safe since version 10.3
936 *
937 * Availability:
938 * Mac OS X: in version 10.0 and later in CoreServices.framework
939 * CarbonLib: in CarbonLib 1.0 and later
940 * Non-Carbon CFM: in InterfaceLib via QuickTime 3.0 and later
941 * Windows: in qtmlClient.lib 3.0 and later
942 }
GetComponentIndStringnull943 function GetComponentIndString( aComponent: Component; var theString: Str255; strListID: SInt16; index: SInt16 ): OSErr; external name '_GetComponentIndString';
944 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
945
946
947 {*******************************************************
948 * Component Instance Management routines
949 *******************************************************}
950 {
951 * GetComponentInstanceStorage()
952 *
953 * Mac OS X threading:
954 * Thread safe since version 10.4
955 *
956 * Availability:
957 * Mac OS X: in version 10.0 and later in CoreServices.framework
958 * CarbonLib: in CarbonLib 1.0 and later
959 * Non-Carbon CFM: in InterfaceLib 7.1 and later
960 * Windows: in qtmlClient.lib 3.0 and later
961 }
GetComponentInstanceStoragenull962 function GetComponentInstanceStorage( aComponentInstance: ComponentInstance ): Handle; external name '_GetComponentInstanceStorage';
963 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
964
965
966 {
967 * SetComponentInstanceStorage()
968 *
969 * Mac OS X threading:
970 * Thread safe since version 10.4
971 *
972 * Availability:
973 * Mac OS X: in version 10.0 and later in CoreServices.framework
974 * CarbonLib: in CarbonLib 1.0 and later
975 * Non-Carbon CFM: in InterfaceLib 7.1 and later
976 * Windows: in qtmlClient.lib 3.0 and later
977 }
978 procedure SetComponentInstanceStorage( aComponentInstance: ComponentInstance; theStorage: Handle ); external name '_SetComponentInstanceStorage';
979 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
980
981
982 {
983 * CountComponentInstances()
984 *
985 * Mac OS X threading:
986 * Thread safe since version 10.4
987 *
988 * Availability:
989 * Mac OS X: in version 10.0 and later in CoreServices.framework
990 * CarbonLib: in CarbonLib 1.0 and later
991 * Non-Carbon CFM: in InterfaceLib 7.1 and later
992 * Windows: in qtmlClient.lib 3.0 and later
993 }
CountComponentInstancesnull994 function CountComponentInstances( aComponent: Component ): SIGNEDLONG; external name '_CountComponentInstances';
995 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
996
997
998 { useful helper routines for convenient method dispatching }
999 {
1000 * CallComponentFunction()
1001 *
1002 * Mac OS X threading:
1003 * Thread safe since version 10.3
1004 *
1005 * Availability:
1006 * Mac OS X: in version 10.0 and later in CoreServices.framework
1007 * CarbonLib: in CarbonLib 1.0 and later
1008 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1009 }
CallComponentFunctionnull1010 function CallComponentFunction( var params: ComponentParameters; func: ComponentFunctionUPP ): ComponentResult; external name '_CallComponentFunction';
1011 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1012
1013
1014 {
1015 * CallComponentFunctionWithStorage()
1016 *
1017 * Mac OS X threading:
1018 * Thread safe since version 10.3
1019 *
1020 * Availability:
1021 * Mac OS X: in version 10.0 and later in CoreServices.framework
1022 * CarbonLib: in CarbonLib 1.0 and later
1023 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1024 * Windows: in qtmlClient.lib 3.0 and later
1025 }
CallComponentFunctionWithStoragenull1026 function CallComponentFunctionWithStorage( storage: Handle; var params: ComponentParameters; func: ComponentFunctionUPP ): ComponentResult; external name '_CallComponentFunctionWithStorage';
1027 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1028
1029
1030 {
1031 * CallComponentFunctionWithStorageProcInfo()
1032 *
1033 * Mac OS X threading:
1034 * Not thread safe
1035 *
1036 * Availability:
1037 * Mac OS X: in version 10.0 and later in CoreServices.framework
1038 * CarbonLib: in CarbonLib 1.0 and later
1039 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1040 }
CallComponentFunctionWithStorageProcInfonull1041 function CallComponentFunctionWithStorageProcInfo( storage: Handle; var params: ComponentParameters; func: ProcPtr; funcProcInfo: ProcInfoType ): ComponentResult; external name '_CallComponentFunctionWithStorageProcInfo';
1042 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1043
1044
1045 {
1046 * DelegateComponentCall()
1047 *
1048 * Mac OS X threading:
1049 * Not thread safe
1050 *
1051 * Availability:
1052 * Mac OS X: in version 10.0 and later in CoreServices.framework
1053 * CarbonLib: in CarbonLib 1.0 and later
1054 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1055 * Windows: in qtmlClient.lib 3.0 and later
1056 }
DelegateComponentCallnull1057 function DelegateComponentCall( var originalParams: ComponentParameters; ci: ComponentInstance ): ComponentResult; external name '_DelegateComponentCall';
1058 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1059
1060
1061 {
1062 * SetDefaultComponent()
1063 *
1064 * Mac OS X threading:
1065 * Not thread safe
1066 *
1067 * Availability:
1068 * Mac OS X: in version 10.0 and later in CoreServices.framework
1069 * CarbonLib: in CarbonLib 1.0 and later
1070 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1071 * Windows: in qtmlClient.lib 3.0 and later
1072 }
SetDefaultComponentnull1073 function SetDefaultComponent( aComponent: Component; flags: SInt16 ): OSErr; external name '_SetDefaultComponent';
1074 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1075
1076
1077 {
1078 * OpenDefaultComponent()
1079 *
1080 * Mac OS X threading:
1081 * Thread safe since version 10.3
1082 *
1083 * Availability:
1084 * Mac OS X: in version 10.0 and later in CoreServices.framework
1085 * CarbonLib: in CarbonLib 1.0 and later
1086 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1087 * Windows: in qtmlClient.lib 3.0 and later
1088 }
OpenDefaultComponentnull1089 function OpenDefaultComponent( componentType: OSType; componentSubType: OSType ): ComponentInstance; external name '_OpenDefaultComponent';
1090 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1091
1092
1093 {
1094 * OpenADefaultComponent()
1095 *
1096 * Mac OS X threading:
1097 * Thread safe since version 10.3
1098 *
1099 * Availability:
1100 * Mac OS X: in version 10.0 and later in CoreServices.framework
1101 * CarbonLib: in CarbonLib 1.0 and later
1102 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1103 * Windows: in qtmlClient.lib 3.0 and later
1104 }
OpenADefaultComponentnull1105 function OpenADefaultComponent( componentType: OSType; componentSubType: OSType; var ci: ComponentInstance ): OSErr; external name '_OpenADefaultComponent';
1106 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1107
1108
1109 {
1110 * CaptureComponent()
1111 *
1112 * Mac OS X threading:
1113 * Thread safe since version 10.4
1114 *
1115 * Availability:
1116 * Mac OS X: in version 10.0 and later in CoreServices.framework
1117 * CarbonLib: in CarbonLib 1.0 and later
1118 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1119 * Windows: in qtmlClient.lib 3.0 and later
1120 }
CaptureComponentnull1121 function CaptureComponent( capturedComponent: Component; capturingComponent: Component ): Component; external name '_CaptureComponent';
1122 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1123
1124
1125 {
1126 * UncaptureComponent()
1127 *
1128 * Mac OS X threading:
1129 * Thread safe since version 10.4
1130 *
1131 * Availability:
1132 * Mac OS X: in version 10.0 and later in CoreServices.framework
1133 * CarbonLib: in CarbonLib 1.0 and later
1134 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1135 * Windows: in qtmlClient.lib 3.0 and later
1136 }
UncaptureComponentnull1137 function UncaptureComponent( aComponent: Component ): OSErr; external name '_UncaptureComponent';
1138 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1139
1140
1141 {
1142 * RegisterComponentResourceFile()
1143 *
1144 * Mac OS X threading:
1145 * Not thread safe
1146 *
1147 * Availability:
1148 * Mac OS X: in version 10.0 and later in CoreServices.framework
1149 * CarbonLib: in CarbonLib 1.0 and later
1150 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1151 * Windows: in qtmlClient.lib 3.0 and later
1152 }
RegisterComponentResourceFilenull1153 function RegisterComponentResourceFile( resRefNum: SInt16; global: SInt16 ): SInt32; external name '_RegisterComponentResourceFile';
1154 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1155
1156
1157 { This call is deprecated. Please use GetIconRefFromComponent() instead.}
1158 {$ifc not TARGET_CPU_64}
1159 {
1160 * GetComponentIconSuite()
1161 *
1162 * Mac OS X threading:
1163 * Not thread safe
1164 *
1165 * Availability:
1166 * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only]
1167 * CarbonLib: in CarbonLib 1.0 and later
1168 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1169 * Windows: in qtmlClient.lib 3.0 and later
1170 }
GetComponentIconSuitenull1171 function GetComponentIconSuite( aComponent: Component; var iconSuite: Handle ): OSErr; external name '_GetComponentIconSuite';
1172 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1173
1174
1175 {$endc} {not TARGET_CPU_64}
1176
1177 {
1178 * These calls allow you to register a file system entity. The
1179 * Component Manager will "do the right thing" with the entity,
1180 * whether it is a standard resource fork based CFM component, CFM
1181 * bundle, mach-o bundle, or packaged bundle.
1182 *
1183 * The *Entries calls allow you to specify a component description
1184 * which will be used to register selective components. (Passing
1185 * NULL, 0 means to register all components.
1186 }
1187 {$ifc not TARGET_CPU_64}
1188 {
1189 * RegisterComponentFile() *** DEPRECATED ***
1190 *
1191 * Mac OS X threading:
1192 * Thread safe since version 10.3
1193 *
1194 * Availability:
1195 * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.5
1196 * CarbonLib: not available
1197 * Non-Carbon CFM: not available
1198 }
RegisterComponentFilenull1199 function RegisterComponentFile( const (*var*) spec: FSSpec; global: SInt16 ): OSErr; external name '_RegisterComponentFile';
1200 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_NA, __IPHONE_NA) *)
1201
1202
1203 {
1204 * RegisterComponentFileEntries() *** DEPRECATED ***
1205 *
1206 * Mac OS X threading:
1207 * Thread safe since version 10.3
1208 *
1209 * Availability:
1210 * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.5
1211 * CarbonLib: not available
1212 * Non-Carbon CFM: not available
1213 }
RegisterComponentFileEntriesnull1214 function RegisterComponentFileEntries( const (*var*) spec: FSSpec; global: SInt16; {const} toRegister: ComponentDescriptionPtr { can be NULL }; registerCount: UInt32 ): OSErr; external name '_RegisterComponentFileEntries';
1215 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_NA, __IPHONE_NA) *)
1216
1217
1218 {$endc} {not TARGET_CPU_64}
1219
1220 {
1221 * RegisterComponentFileRef()
1222 *
1223 * Mac OS X threading:
1224 * Thread safe since version 10.3
1225 *
1226 * Availability:
1227 * Mac OS X: in version 10.0 and later in CoreServices.framework
1228 * CarbonLib: not available
1229 * Non-Carbon CFM: not available
1230 }
RegisterComponentFileRefnull1231 function RegisterComponentFileRef( const (*var*) ref: FSRef; global: SInt16 ): OSErr; external name '_RegisterComponentFileRef';
1232 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1233
1234
1235 {
1236 * RegisterComponentFileRefEntries()
1237 *
1238 * Mac OS X threading:
1239 * Thread safe since version 10.3
1240 *
1241 * Availability:
1242 * Mac OS X: in version 10.0 and later in CoreServices.framework
1243 * CarbonLib: not available
1244 * Non-Carbon CFM: not available
1245 }
RegisterComponentFileRefEntriesnull1246 function RegisterComponentFileRefEntries( const (*var*) ref: FSRef; global: SInt16; {const} toRegister: ComponentDescriptionPtr { can be NULL }; registerCount: UInt32 ): OSErr; external name '_RegisterComponentFileRefEntries';
1247 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1248
1249
1250 {*******************************************************
1251 * *
1252 * Direct calls to the Components *
1253 * *
1254 *******************************************************}
1255 { Old style names}
1256
1257 {$ifc not TARGET_CPU_64}
1258 {
1259 * ComponentFunctionImplemented() *** DEPRECATED ***
1260 *
1261 * Mac OS X threading:
1262 * Thread safe since version 10.3
1263 *
1264 * Availability:
1265 * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.5
1266 * CarbonLib: in CarbonLib 1.0 and later
1267 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1268 * Windows: in qtmlClient.lib 3.0 and later
1269 }
ComponentFunctionImplementednull1270 function ComponentFunctionImplemented( ci: ComponentInstance; ftnNumber: SInt16 ): ComponentResult; external name '_ComponentFunctionImplemented';
1271 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_NA, __IPHONE_NA) *)
1272
1273
1274 {
1275 * GetComponentVersion() *** DEPRECATED ***
1276 *
1277 * Mac OS X threading:
1278 * Thread safe since version 10.3
1279 *
1280 * Availability:
1281 * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.5
1282 * CarbonLib: in CarbonLib 1.0 and later
1283 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1284 * Windows: in qtmlClient.lib 3.0 and later
1285 }
GetComponentVersionnull1286 function GetComponentVersion( ci: ComponentInstance ): ComponentResult; external name '_GetComponentVersion';
1287 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_NA, __IPHONE_NA) *)
1288
1289
1290 {
1291 * ComponentSetTarget() *** DEPRECATED ***
1292 *
1293 * Mac OS X threading:
1294 * Thread safe since version 10.3
1295 *
1296 * Availability:
1297 * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.5
1298 * CarbonLib: in CarbonLib 1.0 and later
1299 * Non-Carbon CFM: in InterfaceLib 7.1 and later
1300 * Windows: in qtmlClient.lib 3.0 and later
1301 }
ComponentSetTargetnull1302 function ComponentSetTarget( ci: ComponentInstance; target: ComponentInstance ): ComponentResult; external name '_ComponentSetTarget';
1303 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_NA, __IPHONE_NA) *)
1304
1305
1306 { New style names}
1307
1308 {$endc} {not TARGET_CPU_64}
1309
1310 {
1311 * CallComponentOpen()
1312 *
1313 * Mac OS X threading:
1314 * Thread safe since version 10.3
1315 *
1316 * Availability:
1317 * Mac OS X: in version 10.0 and later in CoreServices.framework
1318 * CarbonLib: in CarbonLib 1.0 and later
1319 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1320 * Windows: in qtmlClient.lib 3.0 and later
1321 }
CallComponentOpennull1322 function CallComponentOpen( ci: ComponentInstance; self: ComponentInstance ): ComponentResult; external name '_CallComponentOpen';
1323 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1324
1325
1326 {
1327 * CallComponentClose()
1328 *
1329 * Mac OS X threading:
1330 * Thread safe since version 10.3
1331 *
1332 * Availability:
1333 * Mac OS X: in version 10.0 and later in CoreServices.framework
1334 * CarbonLib: in CarbonLib 1.0 and later
1335 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1336 * Windows: in qtmlClient.lib 3.0 and later
1337 }
CallComponentClosenull1338 function CallComponentClose( ci: ComponentInstance; self: ComponentInstance ): ComponentResult; external name '_CallComponentClose';
1339 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1340
1341
1342 {
1343 * CallComponentCanDo()
1344 *
1345 * Mac OS X threading:
1346 * Thread safe since version 10.3
1347 *
1348 * Availability:
1349 * Mac OS X: in version 10.0 and later in CoreServices.framework
1350 * CarbonLib: in CarbonLib 1.0 and later
1351 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1352 * Windows: in qtmlClient.lib 3.0 and later
1353 }
CallComponentCanDonull1354 function CallComponentCanDo( ci: ComponentInstance; ftnNumber: SInt16 ): ComponentResult; external name '_CallComponentCanDo';
1355 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1356
1357
1358 {
1359 * CallComponentVersion()
1360 *
1361 * Mac OS X threading:
1362 * Thread safe since version 10.3
1363 *
1364 * Availability:
1365 * Mac OS X: in version 10.0 and later in CoreServices.framework
1366 * CarbonLib: in CarbonLib 1.0 and later
1367 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1368 * Windows: in qtmlClient.lib 3.0 and later
1369 }
CallComponentVersionnull1370 function CallComponentVersion( ci: ComponentInstance ): ComponentResult; external name '_CallComponentVersion';
1371 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1372
1373
1374 {
1375 * CallComponentRegister()
1376 *
1377 * Mac OS X threading:
1378 * Thread safe since version 10.3
1379 *
1380 * Availability:
1381 * Mac OS X: in version 10.0 and later in CoreServices.framework
1382 * CarbonLib: in CarbonLib 1.0 and later
1383 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1384 * Windows: in qtmlClient.lib 3.0 and later
1385 }
CallComponentRegisternull1386 function CallComponentRegister( ci: ComponentInstance ): ComponentResult; external name '_CallComponentRegister';
1387 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1388
1389
1390 {
1391 * CallComponentTarget()
1392 *
1393 * Mac OS X threading:
1394 * Thread safe since version 10.3
1395 *
1396 * Availability:
1397 * Mac OS X: in version 10.0 and later in CoreServices.framework
1398 * CarbonLib: in CarbonLib 1.0 and later
1399 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1400 * Windows: in qtmlClient.lib 3.0 and later
1401 }
CallComponentTargetnull1402 function CallComponentTarget( ci: ComponentInstance; target: ComponentInstance ): ComponentResult; external name '_CallComponentTarget';
1403 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1404
1405
1406 {
1407 * CallComponentUnregister()
1408 *
1409 * Mac OS X threading:
1410 * Thread safe since version 10.3
1411 *
1412 * Availability:
1413 * Mac OS X: in version 10.0 and later in CoreServices.framework
1414 * CarbonLib: in CarbonLib 1.0 and later
1415 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1416 * Windows: in qtmlClient.lib 3.0 and later
1417 }
CallComponentUnregisternull1418 function CallComponentUnregister( ci: ComponentInstance ): ComponentResult; external name '_CallComponentUnregister';
1419 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1420
1421
1422 {
1423 * CallComponentGetMPWorkFunction()
1424 *
1425 * Mac OS X threading:
1426 * Thread safe since version 10.3
1427 *
1428 * Availability:
1429 * Mac OS X: in version 10.0 and later in CoreServices.framework
1430 * CarbonLib: in CarbonLib 1.0 and later
1431 * Non-Carbon CFM: in InterfaceLib via QuickTime 2.5 and later
1432 * Windows: in qtmlClient.lib 3.0 and later
1433 }
CallComponentGetMPWorkFunctionnull1434 function CallComponentGetMPWorkFunction( ci: ComponentInstance; var workFunction: ComponentMPWorkFunctionUPP; var refCon: UnivPtr ): ComponentResult; external name '_CallComponentGetMPWorkFunction';
1435 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1436
1437
1438 {
1439 * CallComponentGetPublicResource()
1440 *
1441 * Mac OS X threading:
1442 * Thread safe since version 10.3
1443 *
1444 * Availability:
1445 * Mac OS X: in version 10.0 and later in CoreServices.framework
1446 * CarbonLib: in CarbonLib 1.1 and later
1447 * Non-Carbon CFM: in InterfaceLib via QuickTime 4.0 and later
1448 }
CallComponentGetPublicResourcenull1449 function CallComponentGetPublicResource( ci: ComponentInstance; resourceType: OSType; resourceID: SInt16; var resource: Handle ): ComponentResult; external name '_CallComponentGetPublicResource';
1450 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1451
1452
1453 {
1454 CallComponentDispatch is a CarbonLib routine that replaces CallComponent inline glue
1455 to call a component function.
1456 }
1457 {
1458 * CallComponentDispatch()
1459 *
1460 * Mac OS X threading:
1461 * Thread safe since version 10.3
1462 *
1463 * Availability:
1464 * Mac OS X: in version 10.0 and later in CoreServices.framework
1465 * CarbonLib: in CarbonLib 1.0 and later
1466 * Non-Carbon CFM: not available
1467 }
CallComponentDispatchnull1468 function CallComponentDispatch( var cp: ComponentParameters ): ComponentResult; external name '_CallComponentDispatch';
1469 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1470
1471
1472 { UPP call backs }
1473 {
1474 * NewComponentMPWorkFunctionUPP()
1475 *
1476 * Availability:
1477 * Mac OS X: in version 10.0 and later in CoreServices.framework
1478 * CarbonLib: in CarbonLib 1.0 and later
1479 * Non-Carbon CFM: available as macro/inline
1480 }
NewComponentMPWorkFunctionUPPnull1481 function NewComponentMPWorkFunctionUPP( userRoutine: ComponentMPWorkFunctionProcPtr ): ComponentMPWorkFunctionUPP; external name '_NewComponentMPWorkFunctionUPP';
1482 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1483
1484 {
1485 * NewComponentRoutineUPP()
1486 *
1487 * Availability:
1488 * Mac OS X: in version 10.0 and later in CoreServices.framework
1489 * CarbonLib: in CarbonLib 1.0 and later
1490 * Non-Carbon CFM: available as macro/inline
1491 }
NewComponentRoutineUPPnull1492 function NewComponentRoutineUPP( userRoutine: ComponentRoutineProcPtr ): ComponentRoutineUPP; external name '_NewComponentRoutineUPP';
1493 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1494
1495 {
1496 * NewGetMissingComponentResourceUPP()
1497 *
1498 * Availability:
1499 * Mac OS X: in version 10.0 and later in CoreServices.framework
1500 * CarbonLib: in CarbonLib 1.0 and later
1501 * Non-Carbon CFM: available as macro/inline
1502 }
NewGetMissingComponentResourceUPPnull1503 function NewGetMissingComponentResourceUPP( userRoutine: GetMissingComponentResourceProcPtr ): GetMissingComponentResourceUPP; external name '_NewGetMissingComponentResourceUPP';
1504 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1505
1506 {
1507 * DisposeComponentMPWorkFunctionUPP()
1508 *
1509 * Availability:
1510 * Mac OS X: in version 10.0 and later in CoreServices.framework
1511 * CarbonLib: in CarbonLib 1.0 and later
1512 * Non-Carbon CFM: available as macro/inline
1513 }
1514 procedure DisposeComponentMPWorkFunctionUPP( userUPP: ComponentMPWorkFunctionUPP ); external name '_DisposeComponentMPWorkFunctionUPP';
1515 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1516
1517 {
1518 * DisposeComponentRoutineUPP()
1519 *
1520 * Availability:
1521 * Mac OS X: in version 10.0 and later in CoreServices.framework
1522 * CarbonLib: in CarbonLib 1.0 and later
1523 * Non-Carbon CFM: available as macro/inline
1524 }
1525 procedure DisposeComponentRoutineUPP( userUPP: ComponentRoutineUPP ); external name '_DisposeComponentRoutineUPP';
1526 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1527
1528 {
1529 * DisposeGetMissingComponentResourceUPP()
1530 *
1531 * Availability:
1532 * Mac OS X: in version 10.0 and later in CoreServices.framework
1533 * CarbonLib: in CarbonLib 1.0 and later
1534 * Non-Carbon CFM: available as macro/inline
1535 }
1536 procedure DisposeGetMissingComponentResourceUPP( userUPP: GetMissingComponentResourceUPP ); external name '_DisposeGetMissingComponentResourceUPP';
1537 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1538
1539 {
1540 * InvokeComponentMPWorkFunctionUPP()
1541 *
1542 * Availability:
1543 * Mac OS X: in version 10.0 and later in CoreServices.framework
1544 * CarbonLib: in CarbonLib 1.0 and later
1545 * Non-Carbon CFM: available as macro/inline
1546 }
InvokeComponentMPWorkFunctionUPPnull1547 function InvokeComponentMPWorkFunctionUPP( globalRefCon: UnivPtr; header: ComponentMPWorkFunctionHeaderRecordPtr; userUPP: ComponentMPWorkFunctionUPP ): ComponentResult; external name '_InvokeComponentMPWorkFunctionUPP';
1548 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1549
1550 {
1551 * InvokeComponentRoutineUPP()
1552 *
1553 * Availability:
1554 * Mac OS X: in version 10.0 and later in CoreServices.framework
1555 * CarbonLib: in CarbonLib 1.0 and later
1556 * Non-Carbon CFM: available as macro/inline
1557 }
InvokeComponentRoutineUPPnull1558 function InvokeComponentRoutineUPP( var cp: ComponentParameters; componentStorage: Handle; userUPP: ComponentRoutineUPP ): ComponentResult; external name '_InvokeComponentRoutineUPP';
1559 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1560
1561 {
1562 * InvokeGetMissingComponentResourceUPP()
1563 *
1564 * Availability:
1565 * Mac OS X: in version 10.0 and later in CoreServices.framework
1566 * CarbonLib: in CarbonLib 1.0 and later
1567 * Non-Carbon CFM: available as macro/inline
1568 }
InvokeGetMissingComponentResourceUPPnull1569 function InvokeGetMissingComponentResourceUPP( c: Component; resType: OSType; resID: SInt16; refCon: UnivPtr; var resource: Handle; userUPP: GetMissingComponentResourceUPP ): OSErr; external name '_InvokeGetMissingComponentResourceUPP';
1570 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
1571
1572 { ProcInfos }
1573
1574 { MixedMode ProcInfo constants for component calls }
1575 const
1576 uppComponentFunctionImplementedProcInfo = $000002F0;
1577 uppGetComponentVersionProcInfo = $000000F0;
1578 uppComponentSetTargetProcInfo = $000003F0;
1579 uppCallComponentOpenProcInfo = $000003F0;
1580 uppCallComponentCloseProcInfo = $000003F0;
1581 uppCallComponentCanDoProcInfo = $000002F0;
1582 uppCallComponentVersionProcInfo = $000000F0;
1583 uppCallComponentRegisterProcInfo = $000000F0;
1584 uppCallComponentTargetProcInfo = $000003F0;
1585 uppCallComponentUnregisterProcInfo = $000000F0;
1586 uppCallComponentGetMPWorkFunctionProcInfo = $00000FF0;
1587 uppCallComponentGetPublicResourceProcInfo = $00003BF0;
1588
1589 {$endc} {TARGET_OS_MAC}
1590
1591 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
1592
1593 end.
1594 {$endc} {not MACOSALLINCLUDE}
1595