AESizeOfKeyDesc
You can use the AESizeOfKeyDesc function to get the size and descriptor type of a keyword-specified descriptor record in an AE record.
FUNCTION AESizeOfKeyDesc (theAERecord: AERecord;
theAEKeyword: AEKeyword;
VAR typeCode: DescType;
VAR dataSize: Size): OSErr;
theAERecord
- The AE record containing the desired keyword-specified descriptor record.
theAEKeyword
- The keyword that specifies the desired descriptor record.
typeCode
- The descriptor type of the keyword-specified descriptor record.
dataSize
- The length, in bytes of the data in the keyword-specified descriptor record.
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 |