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 the Sizes and Descriptor Types of Descriptor Records


AESizeOfParam

You can use the AESizeOfParam function to get the size and descriptor type of an Apple event parameter.

FUNCTION AESizeOfParam (theAppleEvent: AppleEvent; theAEKeyword: 
                        AEKeyword; VAR typeCode: DescType; 
                        VAR dataSize: Size): OSErr;
theAppleEvent
The Apple event containing the parameter.
theAEKeyword
The keyword that specifies the desired parameter.
typeCode
The descriptor type of the Apple event parameter.
dataSize
The length, in bytes, of the data in the Apple event parameter.
RESULT CODES
noErr0No error
errAEDescNotFound-1701Descriptor record was not found
errAENotAEDesc-1704Not a valid descriptor record
errAEReplyNotArrived-1718Reply has not yet arrived

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996