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.kRTLoadSegbyNum
assumes the current A5 world, whilekRTLoadSegbyNumA5
lets you specify one in thefA5
field of theRTPB
structure (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
fRTParams
structure (page B-2) used with these operations is as follows:
struct RTLoadSegbyNumParam{ short fSegNumber; }; typedef struct RTLoadSegbyNumParam RTLoadSegbyNumParam;ThefSegNumber
field holds the specified segment number. If there is insufficient memory to load the segment, theGetResource
call returns a Memory Manager error. IffSegNumber
is not a valid segment number,GetResource
also returns an error.