Important: The information in this document is obsolete and should not be used for new development.
SCkCardStat
You can use theSCkCardStatfunction to check the initialization status of an expansion card.
FUNCTION SCkCardStat (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlotSignedByteThe slot number. X spResultLongInt DESCRIPTION
TheSCkCardStatfunction checks theInitStatusAfield of the slot information record for the expansion card in the designated slot. You specify the slot in thespSlotfield of the Slot Manager parameter block you point to in thespBlkPtrparameter. TheSCkCardStatfunction returns thenoErrresult code if theInitStatusAfield contains a nonzero value.SPECIAL CONSIDERATIONS
This function may alter the contents of thespResultfield. Your application should not depend on the values returned in this field.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSCkCardStatfunction are
Trap macro Selector _SlotManager $0018 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 $0018
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smEmptySlot-300 No card in this slot SEE ALSO
For more information about card initialization, see "About the Slot Manager," beginning on page 2-15.