I think you could do this with the following sequence of calls:

if (MemHeapFlags(MemPtrHeapID(MemLocalIDToGlobal(localID, cardNo))) &
memHeapFlagReadOnly)
    ...database is in flash or masked ROM
else
    ...database is in RAM

It would appear that although memHeapFlagReadOnly is mentioned in the
documentation, it's defined in a private header file (as 0x0001).

This isn't an official recommendation though; I'll leave that to others. :)
--
Danny Epstein
OS Engineer, Palm Inc.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to