1 {
2      File:       HIToolbox/AEInteraction.h
3 
4      Contains:   AppleEvent functions that deal with Events and interacting with user
5 
6      Version:    HIToolbox-624~3
7 
8      Copyright:  � 2000-2008 by Apple Computer, Inc., all rights reserved.
9 
10      Bugs?:      For bug reports, consult the following page on
11                  the World Wide Web:
12 
13                      http://bugs.freepascal.org
14 
15 }
16 {       Pascal Translation Updated:  Peter N Lewis, <peter@stairways.com.au>, August 2005 }
17 {       Pascal Translation Updated:  Jonas Maebe, <jonas@freepascal.org>, October 2009 }
18 {       Pascal Translation Updated:  Jonas Maebe, <jonas@freepascal.org>, October 2012 }
19 {
20     Modified for use with Free Pascal
21     Version 308
22     Please report any bugs to <gpc@microbizz.nl>
23 }
24 
25 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
26 {$mode macpas}
27 {$modeswitch cblocks}
28 {$packenum 1}
29 {$macro on}
30 {$inline on}
31 {$calling mwpascal}
32 
33 unit AEInteraction;
34 interface
35 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
36 {$setc GAP_INTERFACES_VERSION := $0308}
37 
38 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
39     {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
40 {$endc}
41 
42 {$ifc defined CPUPOWERPC and defined CPUI386}
43 	{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
44 {$endc}
45 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
46 	{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
47 {$endc}
48 
49 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
50 	{$setc __ppc__ := 1}
51 {$elsec}
52 	{$setc __ppc__ := 0}
53 {$endc}
54 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
55 	{$setc __ppc64__ := 1}
56 {$elsec}
57 	{$setc __ppc64__ := 0}
58 {$endc}
59 {$ifc not defined __i386__ and defined CPUI386}
60 	{$setc __i386__ := 1}
61 {$elsec}
62 	{$setc __i386__ := 0}
63 {$endc}
64 {$ifc not defined __x86_64__ and defined CPUX86_64}
65 	{$setc __x86_64__ := 1}
66 {$elsec}
67 	{$setc __x86_64__ := 0}
68 {$endc}
69 {$ifc not defined __arm__ and defined CPUARM}
70 	{$setc __arm__ := 1}
71 {$elsec}
72 	{$setc __arm__ := 0}
73 {$endc}
74 {$ifc not defined __arm64__ and defined CPUAARCH64}
75   {$setc __arm64__ := 1}
76 {$elsec}
77   {$setc __arm64__ := 0}
78 {$endc}
79 
80 {$ifc defined cpu64}
81   {$setc __LP64__ := 1}
82 {$elsec}
83   {$setc __LP64__ := 0}
84 {$endc}
85 
86 
87 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
88 	{$error Conflicting definitions for __ppc__ and __i386__}
89 {$endc}
90 
91 {$ifc defined __ppc__ and __ppc__}
92 	{$setc TARGET_CPU_PPC := TRUE}
93 	{$setc TARGET_CPU_PPC64 := FALSE}
94 	{$setc TARGET_CPU_X86 := FALSE}
95 	{$setc TARGET_CPU_X86_64 := FALSE}
96 	{$setc TARGET_CPU_ARM := FALSE}
97 	{$setc TARGET_CPU_ARM64 := FALSE}
98 	{$setc TARGET_OS_MAC := TRUE}
99 	{$setc TARGET_OS_IPHONE := FALSE}
100 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
101 	{$setc TARGET_OS_EMBEDDED := FALSE}
102 {$elifc defined __ppc64__ and __ppc64__}
103 	{$setc TARGET_CPU_PPC := FALSE}
104 	{$setc TARGET_CPU_PPC64 := TRUE}
105 	{$setc TARGET_CPU_X86 := FALSE}
106 	{$setc TARGET_CPU_X86_64 := FALSE}
107 	{$setc TARGET_CPU_ARM := FALSE}
108 	{$setc TARGET_CPU_ARM64 := FALSE}
109 	{$setc TARGET_OS_MAC := TRUE}
110 	{$setc TARGET_OS_IPHONE := FALSE}
111 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
112 	{$setc TARGET_OS_EMBEDDED := FALSE}
113 {$elifc defined __i386__ and __i386__}
114 	{$setc TARGET_CPU_PPC := FALSE}
115 	{$setc TARGET_CPU_PPC64 := FALSE}
116 	{$setc TARGET_CPU_X86 := TRUE}
117 	{$setc TARGET_CPU_X86_64 := FALSE}
118 	{$setc TARGET_CPU_ARM := FALSE}
119 	{$setc TARGET_CPU_ARM64 := FALSE}
120 {$ifc defined iphonesim}
121  	{$setc TARGET_OS_MAC := FALSE}
122 	{$setc TARGET_OS_IPHONE := TRUE}
123 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
124 {$elsec}
125 	{$setc TARGET_OS_MAC := TRUE}
126 	{$setc TARGET_OS_IPHONE := FALSE}
127 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
128 {$endc}
129 	{$setc TARGET_OS_EMBEDDED := FALSE}
130 {$elifc defined __x86_64__ and __x86_64__}
131 	{$setc TARGET_CPU_PPC := FALSE}
132 	{$setc TARGET_CPU_PPC64 := FALSE}
133 	{$setc TARGET_CPU_X86 := FALSE}
134 	{$setc TARGET_CPU_X86_64 := TRUE}
135 	{$setc TARGET_CPU_ARM := FALSE}
136 	{$setc TARGET_CPU_ARM64 := FALSE}
137 {$ifc defined iphonesim}
138  	{$setc TARGET_OS_MAC := FALSE}
139 	{$setc TARGET_OS_IPHONE := TRUE}
140 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
141 {$elsec}
142 	{$setc TARGET_OS_MAC := TRUE}
143 	{$setc TARGET_OS_IPHONE := FALSE}
144 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
145 {$endc}
146 	{$setc TARGET_OS_EMBEDDED := FALSE}
147 {$elifc defined __arm__ and __arm__}
148 	{$setc TARGET_CPU_PPC := FALSE}
149 	{$setc TARGET_CPU_PPC64 := FALSE}
150 	{$setc TARGET_CPU_X86 := FALSE}
151 	{$setc TARGET_CPU_X86_64 := FALSE}
152 	{$setc TARGET_CPU_ARM := TRUE}
153 	{$setc TARGET_CPU_ARM64 := FALSE}
154 	{$setc TARGET_OS_MAC := FALSE}
155 	{$setc TARGET_OS_IPHONE := TRUE}
156 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
157 	{$setc TARGET_OS_EMBEDDED := TRUE}
158 {$elifc defined __arm64__ and __arm64__}
159 	{$setc TARGET_CPU_PPC := FALSE}
160 	{$setc TARGET_CPU_PPC64 := FALSE}
161 	{$setc TARGET_CPU_X86 := FALSE}
162 	{$setc TARGET_CPU_X86_64 := FALSE}
163 	{$setc TARGET_CPU_ARM := FALSE}
164 	{$setc TARGET_CPU_ARM64 := TRUE}
165 {$ifc defined ios}
166 	{$setc TARGET_OS_MAC := FALSE}
167 	{$setc TARGET_OS_IPHONE := TRUE}
168 	{$setc TARGET_OS_EMBEDDED := TRUE}
169 {$elsec}
170 	{$setc TARGET_OS_MAC := TRUE}
171 	{$setc TARGET_OS_IPHONE := FALSE}
172 	{$setc TARGET_OS_EMBEDDED := FALSE}
173 {$endc}
174 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
175 {$elsec}
176 	{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
177 {$endc}
178 
179 {$ifc defined __LP64__ and __LP64__ }
180   {$setc TARGET_CPU_64 := TRUE}
181 {$elsec}
182   {$setc TARGET_CPU_64 := FALSE}
183 {$endc}
184 
185 {$ifc defined FPC_BIG_ENDIAN}
186 	{$setc TARGET_RT_BIG_ENDIAN := TRUE}
187 	{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
188 {$elifc defined FPC_LITTLE_ENDIAN}
189 	{$setc TARGET_RT_BIG_ENDIAN := FALSE}
190 	{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
191 {$elsec}
192 	{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
193 {$endc}
194 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
195 {$setc CALL_NOT_IN_CARBON := FALSE}
196 {$setc OLDROUTINENAMES := FALSE}
197 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
198 {$setc OPAQUE_UPP_TYPES := TRUE}
199 {$setc OTCARBONAPPLICATION := TRUE}
200 {$setc OTKERNEL := FALSE}
201 {$setc PM_USE_SESSION_APIS := TRUE}
202 {$setc TARGET_API_MAC_CARBON := TRUE}
203 {$setc TARGET_API_MAC_OS8 := FALSE}
204 {$setc TARGET_API_MAC_OSX := TRUE}
205 {$setc TARGET_CARBON := TRUE}
206 {$setc TARGET_CPU_68K := FALSE}
207 {$setc TARGET_CPU_MIPS := FALSE}
208 {$setc TARGET_CPU_SPARC := FALSE}
209 {$setc TARGET_OS_UNIX := FALSE}
210 {$setc TARGET_OS_WIN32 := FALSE}
211 {$setc TARGET_RT_MAC_68881 := FALSE}
212 {$setc TARGET_RT_MAC_CFM := FALSE}
213 {$setc TARGET_RT_MAC_MACHO := TRUE}
214 {$setc TYPED_FUNCTION_POINTERS := TRUE}
215 {$setc TYPE_BOOL := FALSE}
216 {$setc TYPE_EXTENDED := FALSE}
217 {$setc TYPE_LONGLONG := TRUE}
218 uses MacTypes,QuickdrawTypes,AEDataModel,Notification,Events,CarbonEventsCore;
219 {$endc} {not MACOSALLINCLUDE}
220 
221 
222 {$ifc TARGET_OS_MAC}
223 
224 {$ALIGN MAC68K}
225 
226 
227 {*************************************************************************
228   AppleEvent callbacks.
229 *************************************************************************}
230 type
varnull231 	AEIdleProcPtr = function( var theEvent: EventRecord; var sleepTime: SInt32; var mouseRgn: RgnHandle ): Boolean;
varnull232 	AEFilterProcPtr = function( var theEvent: EventRecord; returnID: SInt32; transactionID: AETransactionID; const (*var*) sender: AEAddressDesc ): Boolean;
233 	AEIdleUPP = AEIdleProcPtr;
234 	AEFilterUPP = AEFilterProcPtr;
235 
236 {*************************************************************************
237   The next couple of calls are basic routines used to create, send,
238   and process AppleEvents.
239 *************************************************************************}
240 {
241  *  AESend()
242  *
243  *  Mac OS X threading:
244  *    Not thread safe
245  *
246  *  Availability:
247  *    Mac OS X:         in version 10.0 and later in Carbon.framework
248  *    CarbonLib:        in CarbonLib 1.0 and later
249  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
250  }
AESendnull251 function AESend( const (*var*) theAppleEvent: AppleEvent; var reply: AppleEvent; sendMode: AESendMode; sendPriority: AESendPriority; timeOutInTicks: SInt32; idleProc: AEIdleUPP { can be NULL }; filterProc: AEFilterUPP { can be NULL } ): OSErr; external name '_AESend';
252 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
253 
254 
255 {
256  *  AEProcessAppleEvent()
257  *
258  *  Mac OS X threading:
259  *    Not thread safe
260  *
261  *  Availability:
262  *    Mac OS X:         in version 10.0 and later in Carbon.framework
263  *    CarbonLib:        in CarbonLib 1.0 and later
264  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
265  }
AEProcessAppleEventnull266 function AEProcessAppleEvent( const (*var*) theEventRecord: EventRecord ): OSErr; external name '_AEProcessAppleEvent';
267 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
268 
269 
270 {
271  *  AEProcessEvent()
272  *
273  *  Summary:
274  *    Dispatches a Carbon event of type kEventAppleEvent to the
275  *    appropriate AppleEvent handlers.
276  *
277  *  Discussion:
278  *    This API is similar to AEProcessAppleEvent, but does not require
279  *    the Carbon event to be converted to an EventRecord. Also, unlike
280  *    AEProcessAppleEvent, this API does not require that an event be
281  *    removed from its event queue before processing; the AppleEvent
282  *    will be correctly dispatched even if the Carbon event is still in
283  *    its event queue. Of course, you should still remove the Carbon
284  *    event from its event queue later once you're done handling it,
285  *    and it is also acceptable to remove it from the event queue
286  *    before calling this API.
287  *
288  *  Mac OS X threading:
289  *    Not thread safe
290  *
291  *  Parameters:
292  *
293  *    inEvent:
294  *      A Carbon event of class kEventClassAppleEvent and kind
295  *      kEventAppleEvent.
296  *
297  *  Result:
298  *    The operating system result code returned by the AppleEvent
299  *    handler, or paramErr if the event passed to this API is not of
300  *    the correct class and kind.
301  *
302  *  Availability:
303  *    Mac OS X:         in version 10.5 and later in Carbon.framework
304  *    CarbonLib:        not available
305  *    Non-Carbon CFM:   not available
306  }
AEProcessEventnull307 function AEProcessEvent( inEvent: EventRef ): OSStatus; external name '_AEProcessEvent';
308 (* AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER *)
309 
310 
311 {
312  Note: during event processing, an event handler may realize that it is likely
313  to exceed the client's timeout limit. Passing the reply to this
314  routine causes a wait event to be generated that asks the client
315  for more time.
316 }
317 {
318  *  AEResetTimer()
319  *
320  *  Mac OS X threading:
321  *    Not thread safe
322  *
323  *  Availability:
324  *    Mac OS X:         in version 10.0 and later in Carbon.framework
325  *    CarbonLib:        in CarbonLib 1.0 and later
326  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
327  }
AEResetTimernull328 function AEResetTimer( const (*var*) reply: AppleEvent ): OSErr; external name '_AEResetTimer';
329 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
330 
331 
332 {*************************************************************************
333   The following three calls are used to allow applications to behave
334   courteously when a user interaction such as a dialog box is needed.
335 *************************************************************************}
336 
337 type
338 	AEInteractAllowed = SInt8;
339 const
340 	kAEInteractWithSelf = 0;
341 	kAEInteractWithLocal = 1;
342 	kAEInteractWithAll = 2;
343 
344 {
345  *  AEGetInteractionAllowed()
346  *
347  *  Mac OS X threading:
348  *    Not thread safe
349  *
350  *  Availability:
351  *    Mac OS X:         in version 10.0 and later in Carbon.framework
352  *    CarbonLib:        in CarbonLib 1.0 and later
353  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
354  }
AEGetInteractionAllowednull355 function AEGetInteractionAllowed( var level: AEInteractAllowed ): OSErr; external name '_AEGetInteractionAllowed';
356 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
357 
358 
359 {
360  *  AESetInteractionAllowed()
361  *
362  *  Mac OS X threading:
363  *    Not thread safe
364  *
365  *  Availability:
366  *    Mac OS X:         in version 10.0 and later in Carbon.framework
367  *    CarbonLib:        in CarbonLib 1.0 and later
368  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
369  }
AESetInteractionAllowednull370 function AESetInteractionAllowed( level: AEInteractAllowed ): OSErr; external name '_AESetInteractionAllowed';
371 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
372 
373 
374 {
375  *  AEInteractWithUser()
376  *
377  *  Mac OS X threading:
378  *    Not thread safe
379  *
380  *  Availability:
381  *    Mac OS X:         in version 10.0 and later in Carbon.framework
382  *    CarbonLib:        in CarbonLib 1.0 and later
383  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
384  }
AEInteractWithUsernull385 function AEInteractWithUser( timeOutInTicks: SInt32; nmReqPtr: NMRecPtr; idleProc: AEIdleUPP ): OSErr; external name '_AEInteractWithUser';
386 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
387 
388 
389 {*************************************************************************
390  The following four calls are available for applications which need more
391  sophisticated control over when and how events are processed. Applications
392  which implement multi-session servers or which implement their own
393  internal event queueing will probably be the major clients of these
394  routines. They can be called from within a handler to prevent the AEM from
395  disposing of the AppleEvent when the handler returns. They can be used to
396  asynchronously process the event (as MacApp does).
397 *************************************************************************}
398 {
399  *  AESuspendTheCurrentEvent()
400  *
401  *  Mac OS X threading:
402  *    Not thread safe
403  *
404  *  Availability:
405  *    Mac OS X:         in version 10.0 and later in Carbon.framework
406  *    CarbonLib:        in CarbonLib 1.0 and later
407  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
408  }
AESuspendTheCurrentEventnull409 function AESuspendTheCurrentEvent( const (*var*) theAppleEvent: AppleEvent ): OSErr; external name '_AESuspendTheCurrentEvent';
410 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
411 
412 
413 {
414  Note: The following routine tells the AppleEvent manager that processing
415  is either about to resume or has been completed on a previously suspended
416  event. The procPtr passed in as the dispatcher parameter will be called to
417  attempt to redispatch the event. Several constants for the dispatcher
418  parameter allow special behavior. They are:
419     - kAEUseStandardDispatch means redispatch as if the event was just
420       received, using the standard AppleEvent dispatch mechanism.
421     - kAENoDispatch means ignore the parameter.
422       Use this in the case where the event has been handled and no
423       redispatch is needed.
424     - non nil means call the routine which the dispatcher points to.
425 }
426 { Constants for Refcon in AEResumeTheCurrentEvent with kAEUseStandardDispatch }
427 const
428 	kAEDoNotIgnoreHandler = $00000000;
429 	kAEIgnoreAppPhacHandler = $00000001; { available only in vers 1.0.1 and greater }
430 	kAEIgnoreAppEventHandler = $00000002; { available only in vers 1.0.1 and greater }
431 	kAEIgnoreSysPhacHandler = $00000004; { available only in vers 1.0.1 and greater }
432 	kAEIgnoreSysEventHandler = $00000008; { available only in vers 1.0.1 and greater }
433 	kAEIngoreBuiltInEventHandler = $00000010; { available only in vers 1.0.1 and greater }
434 	kAEDontDisposeOnResume = $80000000; { available only in vers 1.0.1 and greater }
435 
436 { Constants for AEResumeTheCurrentEvent }
437 const
438 	kAENoDispatch = 0;    { dispatch parameter to AEResumeTheCurrentEvent takes a pointer to a dispatch }
439 	kAEUseStandardDispatch = $FFFFFFFF; { table, or one of these two constants }
440 
441 {
442  *  AEResumeTheCurrentEvent()
443  *
444  *  Mac OS X threading:
445  *    Not thread safe
446  *
447  *  Availability:
448  *    Mac OS X:         in version 10.0 and later in Carbon.framework
449  *    CarbonLib:        in CarbonLib 1.0 and later
450  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
451  }
AEResumeTheCurrentEventnull452 function AEResumeTheCurrentEvent( const (*var*) theAppleEvent: AppleEvent; const (*var*) reply: AppleEvent; dispatcher: AEEventHandlerUPP { can be NULL }; handlerRefcon: SRefCon ): OSErr; external name '_AEResumeTheCurrentEvent';
453 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
454 
455 
456 {
457  *  AEGetTheCurrentEvent()
458  *
459  *  Mac OS X threading:
460  *    Not thread safe
461  *
462  *  Availability:
463  *    Mac OS X:         in version 10.0 and later in Carbon.framework
464  *    CarbonLib:        in CarbonLib 1.0 and later
465  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
466  }
AEGetTheCurrentEventnull467 function AEGetTheCurrentEvent( var theAppleEvent: AppleEvent ): OSErr; external name '_AEGetTheCurrentEvent';
468 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
469 
470 
471 {
472  *  AESetTheCurrentEvent()
473  *
474  *  Mac OS X threading:
475  *    Not thread safe
476  *
477  *  Availability:
478  *    Mac OS X:         in version 10.0 and later in Carbon.framework
479  *    CarbonLib:        in CarbonLib 1.0 and later
480  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
481  }
AESetTheCurrentEventnull482 function AESetTheCurrentEvent( const (*var*) theAppleEvent: AppleEvent ): OSErr; external name '_AESetTheCurrentEvent';
483 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
484 
485 
486 {*************************************************************************
487   AppleEvent callbacks.
488 *************************************************************************}
489 {
490  *  NewAEIdleUPP()
491  *
492  *  Availability:
493  *    Mac OS X:         in version 10.0 and later in Carbon.framework
494  *    CarbonLib:        in CarbonLib 1.0 and later
495  *    Non-Carbon CFM:   available as macro/inline
496  }
NewAEIdleUPPnull497 function NewAEIdleUPP( userRoutine: AEIdleProcPtr ): AEIdleUPP; external name '_NewAEIdleUPP';
498 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
499 
500 {
501  *  NewAEFilterUPP()
502  *
503  *  Availability:
504  *    Mac OS X:         in version 10.0 and later in Carbon.framework
505  *    CarbonLib:        in CarbonLib 1.0 and later
506  *    Non-Carbon CFM:   available as macro/inline
507  }
NewAEFilterUPPnull508 function NewAEFilterUPP( userRoutine: AEFilterProcPtr ): AEFilterUPP; external name '_NewAEFilterUPP';
509 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
510 
511 {
512  *  DisposeAEIdleUPP()
513  *
514  *  Availability:
515  *    Mac OS X:         in version 10.0 and later in Carbon.framework
516  *    CarbonLib:        in CarbonLib 1.0 and later
517  *    Non-Carbon CFM:   available as macro/inline
518  }
519 procedure DisposeAEIdleUPP( userUPP: AEIdleUPP ); external name '_DisposeAEIdleUPP';
520 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
521 
522 {
523  *  DisposeAEFilterUPP()
524  *
525  *  Availability:
526  *    Mac OS X:         in version 10.0 and later in Carbon.framework
527  *    CarbonLib:        in CarbonLib 1.0 and later
528  *    Non-Carbon CFM:   available as macro/inline
529  }
530 procedure DisposeAEFilterUPP( userUPP: AEFilterUPP ); external name '_DisposeAEFilterUPP';
531 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
532 
533 {
534  *  InvokeAEIdleUPP()
535  *
536  *  Availability:
537  *    Mac OS X:         in version 10.0 and later in Carbon.framework
538  *    CarbonLib:        in CarbonLib 1.0 and later
539  *    Non-Carbon CFM:   available as macro/inline
540  }
InvokeAEIdleUPPnull541 function InvokeAEIdleUPP( var theEvent: EventRecord; var sleepTime: SInt32; var mouseRgn: RgnHandle; userUPP: AEIdleUPP ): Boolean; external name '_InvokeAEIdleUPP';
542 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
543 
544 {
545  *  InvokeAEFilterUPP()
546  *
547  *  Availability:
548  *    Mac OS X:         in version 10.0 and later in Carbon.framework
549  *    CarbonLib:        in CarbonLib 1.0 and later
550  *    Non-Carbon CFM:   available as macro/inline
551  }
InvokeAEFilterUPPnull552 function InvokeAEFilterUPP( var theEvent: EventRecord; returnID: SInt32; transactionID: AETransactionID; const (*var*) sender: AEAddressDesc; userUPP: AEFilterUPP ): Boolean; external name '_InvokeAEFilterUPP';
553 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
554 
555 {$endc} {TARGET_OS_MAC}
556 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
557 
558 end.
559 {$endc} {not MACOSALLINCLUDE}
560