The module defines three functions:
This function makes a FSSpec out of the name of your preferences file.
The FSSpec correctly references where that file should be found in
the Preferences folder of your System Folder.
This function takes an FSSpec pointing to a file, a pointer to some
data, and the length of the data in bytes. The preferences file is
created, and the data is written to it. The creator of the file is
defined by the global variable gPrefsCreator. This
defaults to ????, but you should change it to your
application's signature before calling this function.
This function takes an FSSpec pointing to an existing file, a pointer to a buffer, and the size of the buffer in bytes. The data from the preferences file is loaded into it.