Important: The information in this document is obsolete and should not be used for new development.
SCardChanged
You can use theSCardChanged
function to determine if the card in a particular slot has been changed.
FUNCTION SCardChanged (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlot
SignedByte
The slot number. <-- spResult
LongInt A Boolean signifying whether the card was changed. DESCRIPTION
TheSCardChanged
function checks if the expansion card in a slot has been changed (that is, if the card'ssPRAMInit
record has been initialized). You specify the slot in thespSlot
field of the Slot Manager parameter block you point to in thespBlkPtr
parameter.The
SCardChanged
function returns a value ofTRUE
in thespResult
field of the parameter block if the card has been changed.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSCardChanged
function are
Trap macro Selector _SlotManager $0022 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 $0022
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smEmptySlot
-300 No card in this slot