AESizeOfKeyDesc
AESizeOfKeyDesc Descriptor type of keyword-specified descriptor record
#include <AppleEvents.h> Apple Event Manager
OSErr AESizeOfKeyDesc( theAERecord, theAEKeyword, typeCode,
dataSize );
AERecord * theAERecord ; AE record containing descriptor record
AEKeyword theAEkeyword ; Apple Event keyword
DescType * typeCode ; descriptor type of descriptor record
Size * dataSize ; size of data in descriptor record
returns Error Code; 0 = no error
The AESizeOfKeyDesc function returns the size and descriptor type of a
keyword-specified descriptor record in an AE record.
The parameter theAERecord is the AE record containing the desired
keyword-specified descriptor record.
The parameter theAEKeyword is the keyword that specifies the desired
descriptor record.
This function returns the descriptor type of the desired
keyword-specified descriptor record in the typeCode parameter.
This function returns the length, in bytes, of the data contained in the
keyword-specified descriptor record in the dataSize parameter.
Result codes
noErr (0) No error
errAEDescNotFound (-1701) Descriptor record was not found
errAENotAEDesc (-1704) Not a valid descriptor record
errAEReplyNotArrived (-1718) Reply has not yet arrived