Hi
Is there a way to determine whether a pointer is in ROM.
I tried:
handle = MemPtrRecoverHandle ((void*)ptr);
if (handle != NULL)
{
heapID = MemHandleHeapID(handle);
if ((MemHeapFlags(heapID) & memHeapFlagReadOnly) != 0)
...;
}
Unfortunately MemPtrRecoverHandle didn't work with poiters in ROM :(.
Can somebody help me, keeping in mind that pointer is absolutely free and I
cannot get its handle in another way.
10x in advanse.
Goro
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/