AERemoveCoercionHandler
AERemoveCoercionHandler Remove coercion handler
#include <AppleEvents.h> Apple Event Manager
OSErr AERemoveCoercionHandler ( fromType, toType, handler,
isSysHandler );
DescType fromType ; descriptor type of coerced data
DescType toType ; descriptor type of resulting data
ProcPtr handler ; pointer to coercion handler routine
Boolean isSysHandler ; TRUE = removed from system coercion table
FALSE = removed from application coercion table
returns Error Code; 0 = no error
The AERemoveCoercionHandler function removes a coercion handler
routine from either the application or system coercion table.
The fromType parameter is the descriptor type of the data coerced by the
handler.
The toType parameter is the descriptor type of the resulting data.
The handler parameter is a pointer to the coercion handler routine. Although
the fromType and toType parameters would be sufficient to identify the
handler to be removed, providing the handler parameter is a safeguard to
ensure that you remove the correct handler.
The isSysHandler parameter specifies the coercion table from which to
remove the handler. If its value is TRUE, the handler is removed from the
system coercion table. If its value is FALSE, the handler is removed from the
application coercion table.
Result codes
noErr (0) No error
memFullErr (-108) Not enough room in heap zone
errAEHandlerNotFound (-1717) No coercion handler found