DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 02 Aug 2007 17:06:53 -0000,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Krupa
          2    ctacke/ ctacke[at]opennetcf[dot]com
          3    Krupa


Mount/Unmount storage card on a Windows CE device   
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
Date:Thu, 02 Aug 2007 17:06:53 -0000   Author:  

Re: Mount/Unmount storage card on a Windows CE device   
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



"Krupa"  wrote in message 
news:1186074413.395265.94800@d30g2000prg.googlegroups.com...

> 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
> 
Date:Thu, 2 Aug 2007 12:13:49 -0500   Author:  

Re: Mount/Unmount storage card on a Windows CE device   
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
Date:Thu, 02 Aug 2007 17:50:37 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us