Important: The information in this document is obsolete and should not be used for new development.
AEPutParamPtr
You can use theAEPutParamPtr
function to add a pointer to data, a descriptor type, and a keyword to an Apple event as an Apple event parameter.
FUNCTION AEPutParamPtr (theAppleEvent: AppleEvent; theAEKeyword: AEKeyword; typeCode: DescType; dataPtr: Ptr; dataSize: Size): OSErr;
theAppleEvent
- The Apple event to which to add a parameter.
theAEKeyword
- The keyword for the parameter to be added. If the Apple event already included a parameter with this keyword, the parameter is replaced.
typeCode
- The descriptor type for the parameter.
dataPtr
- A pointer to the data for the parameter.
dataSize
- The length, in bytes, of the data for the parameter.
RESULT CODES
SEE ALSO
For an example of the use ofAEPutParamPtr
, see "Adding Parameters to an Apple Event," which begins on page 5-5.