Important: The information in this document is obsolete and should not be used for new development.
SVersion
You can use theSVersion
function 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.
<-- spResult
LongInt The Slot Manager version number. <-- spsPointer
Ptr A pointer to additional information. DESCRIPTION
TheSVersion
function returns the version number of the Slot Manager in thespResult
field of the Slot Manager parameter block that you point to in thespBlkPtr
parameter. 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 theSVersion
function and return the result codesmSelOOBErr
. ThespsPointer
field is reserved for future use as a pointer to additional information.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSVersion
function 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
_SlotManager
returns, 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.