Important: The information in this document is obsolete and should not be used for new development.
Creating File System Specification Records
Sometimes it is useful for your application to create a file system specification record. For example, your application might be running in an environment where the enhanced Standard File Package routines (which returnFSSpecrecords) are unavailable but the File Manager routines that acceptFSSpecrecords are available (perhaps as glue code in your development system). You can call theFSMakeFSSpecfunction (or its low-level equivalentPBMakeFSSpec) to initialize a file system specification record.Three of the parameters to
FSMakeFSSpecrepresent the volume, parent directory, and file specifications of the target object. You can provide this information in any of the four combinations described in "HFS Specifications" beginning on page 2-28. Table 2-10 details the ways your application can identify the name and location of a file or directory in a call toFSMakeFSSpec.The fourth parameter to
FSMakeFSSpecis a pointer to theFSSpecrecord.