"Ryan" <[EMAIL PROTECTED]> a �crit dans le message de news: 
[EMAIL PROTECTED]
> Hello,
>
> Is there a way to detect if a device is using NVFS and Db Cache? And then 
> detect how much free DB Cache is available?
>
> At present I use the following code snippet, but this does not tell me if 
> the returned value is definitely DB Cache. It just tells me the free 
> memory on this heap.
>
>
> void GetDBCacheMemory(UInt32 & aFreeMem)
> {
> UInt16 storageHeapId = 1;
> UInt32 maxSize = 0;
> aFreeMem = 0;
> MemHeapFreeBytes(storageHeapId | dbCacheFlag, &aFreeMem, &maxSize);
> }
>
>

 gbolPalmHasNVFS=false;
 if (FtrGet(sysFtrCreator,sysFtrNumDmAutoBackup, &ulngValue)==errNone)
  {
  if (ulngValue==1)
   gbolPalmHasNVFS=true;
  }


-- 
Regis St-Gelais
www.laubrass.com 



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

Reply via email to