First, download a copy of "Filez!" from 'nosleep software' (www.nosleep.net).
Two of the options on the main screen will help you - the first, 'View and
Edit Files' will help you in finding the two databases, appropriately titled
"Unsaved Preferences" and "Saved Preferences".
The second option allows you to view data stored in these two databases. The
creator ID for these databases is 'psys' with a type of 'sprf' and 'pref' for
the saved and unsaved preferences respectively.
Be careful, according to Filez!, both databases are resource databases. This
allows for easy association of Creator ID & Preference Number to resource ID
and number.
Also be careful if you wish to display the contents of a resource. Endianess
has become an issue...
On October 26, 2004 12:10 pm, Lorraine Chin wrote:
> Help!
> Does anyone know how to open up whatever file or database the system
> preferences are stored?
> I've searched all over the Preferences API documentation and Preferences.h
> header file but it doesn't show you how to access the entire
> database/file/whatever, only how to get/set one preference at a time. I've
> tried using...
> DmGetNextDatabaseByTypeCreator(true, &stateInfo, 'sprf',
> sysFileCPreferences, true, &cardNo, &dbId); For the 3rd arg, I've tried
> using 'sprf', 'pref' and even 'data'. They all failed to find
> anything. I've read about the collection of DmFindResource APIs but they
> all assume you already have the database and know the resource id and type
> you're looking for. And I don't even know if these preferences are
> considered a resource.
>
> I've been searching around this for so long I'm about to give up. If
> someone can give a pointer I'd greatly appreciate it.
>
> Thanks in advance,
> Lorraine
--
Matthew Bevan, Margin Software
- Re-inventing the wheel, every time.
Fresco's Discovery:
If you knew what you were doing you'd probably be bored.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/