AECreateDesc
DescType typeCode ; descriptor type of the descriptor record Ptr dataPtr ; pointer to data for the descriptor record Size dataSize ; size of the descriptor record descriptor record.
The typeCode parameter is the descriptor type for the resulting descriptor record.
The dataPtr parameter is a pointer to the data for the descriptor record. The dataSize parameter is the length, in bytes, of the data for the descriptor record.
descriptor record. This function creates a new descriptor record by copying
the descriptor record from the parameter. Your application is responsible for
using the AEDisposeDesc function to dispose of the resulting descriptor record once you are finished using it. You normally do this after receiving a
result from the AESend function. If the function returns a nonzero result code, a descriptor record with the
typeNull descriptor type is returned. A descriptor record of this type does not
contain any data.
For an example program showing usage of this routine, see the description of
Specifying a Target Address.
Result codes
noErr (0) No error
memFullErr (-108) Not enough room in heap zone