Orasanu Iuliana wrote:
This function is not defined on my compilator, how come?
I'm trying to find whether the handheld has an expansion slot and whether any 
file systems are present.
Here are the docs...
http://www.palmos.com/dev/support/docs/conduits/win/CComp_Expansion.html#996231

Those are docs for the conduit API, but you said you are trying to write code for the Palm device, so those docs aren't relevant.

You need to look at the Palm OS Programmer's API Reference instead.

Anyway, to check whether VFS is available, you need to use FtrGet()
to check for the VFS Manager Feature Set.

I've tried to use ExpSlotEnumerate and ExpCardPresent, but when I
put this on a real device this functions are checking if on the
device is mounted or not a card...

Just use VFSVolumeEnumerate(). This will give you a list of all the volumes that are currently mounted. If none are mounted, then you will get an empty list. If one or more are mounted, they will appear in the list.

(You could think about slots and whether there is a card in the slots,
but I think it's better to think about VFS volumes only and ignore
the issue of cards and slots.  That way you retain compatibility with
devices that have some other kind of VFS filesystem, like the T|T5
which has a VFS filesystem on internal flash, or like the various
RAM disks that exist.)

  - Logan

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

Reply via email to