RE: checking if DB is in ROM

2004-06-26 Thread Matthew Bevan
, 2004 9:41 PM To: Palm Developer Forum Subject: Re: checking if DB is in ROM somehow i thought it would be easier to find the answer from docs. but i couldnt too :( but searched in the forum, as i felt sure this question must've been asked earlier.. check out Aaron's answer..http://news.palmos.com

Re: checking if DB is in ROM

2004-06-25 Thread Dave Carrigan
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

RE: checking if DB is in ROM

2004-06-25 Thread Nathan Black
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

RE: checking if DB is in ROM

2004-06-25 Thread Nathan Black
Ooops! nevermind about my last post, i didn't read right. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: checking if DB is in ROM

2004-06-25 Thread Prakash
somehow i thought it would be easier to find the answer from docs. but i couldnt too :( but searched in the forum, as i felt sure this question must've been asked earlier.. check out Aaron's answer..http://news.palmos.com/read/messages?id=152622#152622 Cheers, Prakash On Fri, 25 Jun 2004