Tam Hanna wrote:
Hi Guich,
Now, I am not sure if such a function ever existed as I am not too
proficient in using file systems.
However, I use this code in my VFS file selection dialog(contact me for
source!!!) in order to enumerate volumes:
static UInt16 countVolumes()
{//returns number of Volumes, 1=1 volume!!
int volumes=0;
UInt16 volRefNum;
UInt32 volIterator = vfsIteratorStart;
while (volIterator != vfsIteratorStop)
{
if (VFSVolumeEnumerate(&volRefNum, &volIterator) == errNone)
{
volumes++;
}
}
return volumes;
}
Of course, you may still need to determine if the volume really contains
writable expansion memory,....
This will of course only check for mounted volumes. This number must not
be the same as the number of inserted cards. Example:
WiFi-card -> no volume
NVFS, RamDisk or Zodiac -> a volume, without a card inserted
But guich, maybe you only need to enumerate the volumes, or do you
really care about cards inerted?
Regards
Henk
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/