Important: The information in this document is obsolete and should not be used for new development.
AEResumeTheCurrentEvent
You can use theAEResumeTheCurrentEventfunction to inform the Apple Event Manager that your application wants to resume the handling of a previously suspended Apple event or that it has completed the handling of the Apple event.
FUNCTION AEResumeTheCurrentEvent (theAppleEvent, reply: AppleEvent; dispatcher: EventHandlerProcPtr; handlerRefcon: LongInt): OSErr;
theAppleEvent- The Apple event to be resumed.
reply- The default reply provided by the Apple Event Manager for the Apple event.
dispatcher- One of the following:
- a pointer to a routine for handling the event
- the
kAEUseStandardDispatchconstant, which tells the Apple Event Manager to dispatch the resumed event using the standard dispatching scheme it uses for other Apple events- the
kAENoDispatchconstant, which tells the Apple Event Manager that the Apple event has been completely processed and need not be dispatched
handlerRefcon
If the value of thedispatcherparameter is notkAEUseStandardDispatch, this parameter is the reference constant passed to the handler when the handler is called. If the value of thedispatcherparameter iskAEUseStandardDispatch, the Apple Event Manager ignores thehandlerRefconparameter and instead passes the reference constant stored in the Apple event dispatch table entry for the Apple event. (You may wish to pass the same reference constant that is stored in the Apple event dispatch table. If so, call theAEGetEventHandlerfunction.)DESCRIPTION
When your application calls theAEResumeTheCurrentEventfunction, the Apple Event Manager resumes handling the specified Apple event using the handler specified in thedispatcherparameter, if any. IfkAENoDispatchis specified in thedispatcherparameter,AEResumeTheCurrentEventsimply informs the Apple Event Manager that the specified event has been handled.SPECIAL CONSIDERATIONS
An Apple event handler that suspends an event should not immediately callAEResumeTheCurrentEvent, or else the handler will generate an error. Instead, the handler should return just after suspending the event.When your application calls
AEResumeTheCurrentEventfor an event that was not directly dispatched, the Apple Event Manager disposes of the event and the reply, just as it normally does, after the event handler returns toAEProcessAppleEvent. Make sure all processing involving the event or the reply has been completed before your application callsAEResumeTheCurrentEvent. Do not callAEResumeTheCurrentEventfor an event that was not suspended.When your application calls
AEResumeTheCurrentEventfor an event that was directly dispatched, your application is responsible for disposing of the original event and the reply, since it is acts as both the server and the client.RESULT CODE
noErr 0 No error