Mount/Unmount storage card on a Windows CE device

K

Krupa

Hi,

I am writing a C# application on CF 2.0 for a Windows CE 5.0 device.
Currently, when the device is connected to a computer on the USB port,
the storage card gets mounted to the PC and shows up as a drive and
cannot be accessed on the device. (The device has a core Windows CE
image which doesn't support active sync). The SD card gets mounted
back on to the device when the device is unplugged from the PC. Is it
possible to programmatically mount the card to the device when it is
connected to the computer? Ideally I would like to access the storage
card both on the device and and on the computer at the same time. Am I
aiming at something impossible?

Thanks,
Krupa
 
G

Guest

The USB Client driver is exposing the device as a mass storage device,
specifically the SD card. If its unmounting it from the local file system,
it's to prevent multiple things from altering the FAT on the volume at the
same time. Trying to remount it locally while is mounted remotely is
probably a bad idea, if it's even possible.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
K

Krupa

Thanks, Chris. In my case, the PC would not be altering any files on
the storage card that are used by my application. So there will be no
situation where the files would be altered at two places at the same
time. I just want to give it a try, at least. Please let me know if
there are any APIs that I could use in this regard. I read about
MountDisk somewhere, but need more information about it.

-Krupa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top