On Fri, Jun 25, 2004 at 11:29:21AM -0400, Alexander R. Pruss wrote: > This may be a really dumb question, but how do I check if a DB is in ROM?
Convert the database's LocalID to a locked pointer with MemLocalIDToLockedPtr(), get the pointer's heap ID with MemPtrHeapID(), get the heap flags for the heap ID with MemHeapFlags(). If the memHeapFlagReadOnly bit is set, the database is in ROM. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/