Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 4 - Responding to Apple Events / Reference to Responding to Apple Events
Routines for Responding to Apple Events / Getting Information About the Apple Event Manager


AEManagerInfo

You can use the AEManagerInfo function to obtain information about the version of the Apple Event Manager currently available or the number of processes that are currently recording Apple events. This function is available only in version 1.01 and later versions of the Apple Event Manager.

FUNCTION AEManagerInfo (keyword: AEKeyword; 
                        VAR result: LongInt): OSErr;
keyword
A value that determines what kind of information AEManagerInfo returns. The value can be represented by one of these constants:
CONST keyAERecorderCount = 'recr';
keyAEVersion = 'vers';
result
If the value of the keyword parameter is keyAERecorderCount, this parameter is an integer that indicates the number of processes that are currently recording Apple events. If the value of the keyword parameter is keyAEVersion, this parameter is an integer that provides information about the version of the Apple Event Manager available on the current computer, using the same format as a 'vers' resource.
RESULT CODE
noErr0No error
SEE ALSO
For information about using the AEManagerInfo function to check whether Apple event recording is on or not, see the chapter "Recording Apple Events" in this book.

For information about using Gestalt to determine whether the Apple Event Manager is available, see "Handling Apple Events" on page 4-4.

For information about the 'vers' resource, see the chapter "Finder Interface" in Inside Macintosh: Macintosh Toolbox Essentials.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996