Important: The information in this document is obsolete and should not be used for new development.
SCardChanged
You can use theSCardChangedfunction 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.
--> spSlotSignedByteThe slot number. <-- spResultLongInt A Boolean signifying whether the card was changed. DESCRIPTION
TheSCardChangedfunction checks if the expansion card in a slot has been changed (that is, if the card'ssPRAMInitrecord has been initialized). You specify the slot in thespSlotfield of the Slot Manager parameter block you point to in thespBlkPtrparameter.The
SCardChangedfunction returns a value ofTRUEin thespResultfield of the parameter block if the card has been changed.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSCardChangedfunction 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
_SlotManagerreturns, 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