Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

USB memory storage 2 (BREW 3.1.5SP01 only)

To get information on USB memory storage 2, change the code from this:

{
   uint32 dwBytesFree;
   uint32  dwBytesTotal;
   int nErr;
   nErr = IFILEMGR_GetFreeSpaceEx(piFileMgr,
      AEEFS_USB_HOST_MASS_STORAGE2, &dwBytesTotal, &dwBytesFree);
   // If nErr is SUCCESS, dwBytesTotal is the total filesystem size
   // and dwBytesFree is the free bytes on the filesystem.
}

to this:

{
   AEEFSFreeSpace fsFreeSpace;
   int nSize = sizeof(fsFreeSpace);
   int nErr;
   nErr = ISHELL_GetDeviceInfoEx(piShell,
      AEE_DEVICEITEM_FSSPACE_USBHMS2, (void*)&fsFreeSpace, &nSize);
   // If nErr is SUCCESS, fsFreeSpace.qwTotalSpace is the total
   // filesystem size and fsFreeSpace.qwFreeSpace is the free
   // bytes on the filesystem.
}