Important: The information in this document is obsolete and should not be used for new development.
SCkCardStat
You can use theSCkCardStat
function to check the initialization status of an expansion card.
FUNCTION SCkCardStat (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spSlot
SignedByte
The slot number. X spResult
LongInt DESCRIPTION
TheSCkCardStat
function checks theInitStatusA
field of the slot information record for the expansion card in the designated slot. You specify the slot in thespSlot
field of the Slot Manager parameter block you point to in thespBlkPtr
parameter. TheSCkCardStat
function returns thenoErr
result code if theInitStatusA
field contains a nonzero value.SPECIAL CONSIDERATIONS
This function may alter the contents of thespResult
field. Your application should not depend on the values returned in this field.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSCkCardStat
function 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
_SlotManager
returns, 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.