SVersion
You can use theSVersionfunction to determine which version of the Slot Manager is in use by the Macintosh Operating System.
FUNCTION SVersion (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
<-- spResultLongInt The Slot Manager version number. <-- spsPointerPtr A pointer to additional information. DESCRIPTION
TheSVersionfunction returns the version number of the Slot Manager in thespResultfield of the Slot Manager parameter block that you point to in thespBlkPtrparameter. Version number 1 corresponds to the RAM-based Slot Manager and version number 2 corresponds to the ROM-based Slot Manager. Versions of the Slot Manager prior to System 7 do not recognize theSVersionfunction and return the result codesmSelOOBErr. ThespsPointerfield is reserved for future use as a pointer to additional information.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSVersionfunction are
Trap macro Selector _SlotManager $0008 You must set up register D0 with the routine selector and register A0 with the address of the Slot Manager parameter block. When
_SlotManagerreturns, register D0 contains the result code.
Registers on entry A0 Address of the parameter block D0 $0008
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smSelOOBErr -338 Selector out of bounds or function not implemented SEE ALSO
For more information on the different versions of the Slot Manager, see "About the Slot Manager" on page 2-15.