Important: The information in this document is obsolete and should not be used for new development.
kRTLoadSegbyNum and kRTLoadSegbyNumA5
This operation (available only for CFM-68K) allows you to explicitly load a segment by segment number.kRTLoadSegbyNumassumes the current A5 world, whilekRTLoadSegbyNumA5lets you specify one in thefA5field of theRTPBstructure (page B-2).No user vectors are called while attempting to load the segment. If for any reason the segment cannot be loaded, the operation returns
OSErr.The
fRTParamsstructure (page B-2) used with these operations is as follows:
struct RTLoadSegbyNumParam{ short fSegNumber; }; typedef struct RTLoadSegbyNumParam RTLoadSegbyNumParam;ThefSegNumberfield holds the specified segment number. If there is insufficient memory to load the segment, theGetResourcecall returns a Memory Manager error. IffSegNumberis not a valid segment number,GetResourcealso returns an error.