AESizeOfNthItem
You can use the AESizeOfNthItem function to get the size and descriptor type of a descriptor record in a descriptor list.
FUNCTION AESizeOfNthItem (theAEDescList: AEDescList;
index: LongInt; VAR typeCode: DescType;
VAR dataSize: Size): OSErr;
theAEDescList
- The descriptor list containing the descriptor record.
index
- The position of the descriptor record in the list (for example, 2 specifies the second descriptor record).
typeCode
- The descriptor type of the descriptor record.
dataSize
- The length (in bytes) of the data in the descriptor record.
RESULT CODES
| noErr | 0 | No error |
| errAEDescNotFound | -1701 | Descriptor record was not found |
| errAEReplyNotArrived | -1718 | Reply has not yet arrived |