In article <9723@palm-dev-forum>, "Barida Sigalo"
<[EMAIL PROTECTED]> wrote:

> Thanks Neelesh...I figured this out a long time ago. The problem I am trying
> to solve is deciding which databases in the list are in ROM and which ones
> in Ram. To the best of my knowledge, none of the parameters in
> DmDatabaseInfo give you this info.
> 
> Barida--

I do it currently with the following code:

// asume that localIds in ROM are pointers
if (MemLocalIDKind(localId) == memIDHandle)
  rom = false; else rom = true;

Is it reasonable to asume that the local id of databases in ROM are
pointers and the one in RAM are handles? Or will this break in any of the
existing versions of the OS? Does it break on a foreseeable future OS?

BTW: The asumtion that I really make is:
If the local id of a database is a pointer, then DmSetDatabaseInfo may
(will)  crash (instead of returning an error) whereas it does work on
handle based databases, even if the dmHdrAttrReadOnly attribute is set.
-- 
Remo <[EMAIL PROTECTED]>                       /   /   /   /
----------------------------------------- -===(o<0=0=0=0=0=0=0=0>===-
Do NOT remove .nospam from email address!          \   \   \   \

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to