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 From sResources

The Slot Manager provides a number of routines that simplify access to the information in sResources. Most of these routines simply return the value of an sResource entry.

The SReadDrvrName function returns the name of an sResource, formatted as a Pascal string and prefixed with a period. You can pass this string to the Device Manager's OpenSlot function to open the driver.

The SReadByte, SReadWord, and SReadLong functions return byte, word, or long values from an sResource entry. The SGetCString, SGetBlock, SReadStruct, and SFindStruct functions return pointers to larger data types.


Subtopics
SReadDrvrName
SReadByte
SReadWord
SReadLong
SGetCString
SGetBlock
SFindStruct
SReadStruct

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996