Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 2 - Slot Manager / Slot Manager Reference
Slot Manager Routines / Getting Information About Expansion Cards and Declaration ROMs


SCkCardStat

You can use the SCkCardStat function 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.
XspResultLongInt 

DESCRIPTION
The SCkCardStat function checks the InitStatusA field of the slot information record for the expansion card in the designated slot. You specify the slot in the spSlot field of the Slot Manager parameter block you point to in the spBlkPtr parameter. The SCkCardStat function returns the noErr result code if the InitStatusA field contains a nonzero value.

SPECIAL CONSIDERATIONS
This function may alter the contents of the spResult field. Your application should not depend on the values returned in this field.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the SCkCardStat function are
Trap macroSelector
_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
A0Address of the parameter block
D0$0018
Registers on exit
D0Result code

RESULT CODES
noErr0No error
smEmptySlot-300No card in this slot
SEE ALSO
For more information about card initialization, see "About the Slot Manager," beginning on page 2-15.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996