How do you correctly determine the path to an inserted storage card in
Windows Mobile CF using C#?
Regards,
Peter
--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"Peter Hartlén" <pe...@data.se> wrote in message
news:uyNJowT...@TK2MSFTNGP02.phx.gbl...
We've hit this problem ourselves a few times, and have simply
given up relying on the FindFirstStorageCard() function.
More often than not, it returns the name of the internal memory
directory (eg "iPaq File Store") rather than the name of the
Storage Card.
We've yet to find a reliable way to determine the Storage Card
name, which works across all makes & models of devices.
James
www.pocketpcinstaller.com
--
http://csharponphone.blogspot.com/
On Feb 6, 12:29 am, JamesFielding
<JamesField...@discussions.microsoft.com> wrote:
> Hi Chris,
>
> We've hit this problem ourselves a few times, and have simply
> given up relying on the FindFirstStorageCard() function.
>
> More often than not, it returns the name of the internal memory
> directory (eg "iPaq File Store") rather than the name of the
> Storage Card.
>
> We've yet to find a reliable way to determine the Storage Card
> name, which works across all makes & models of devices.
>
> James
> www.pocketpcinstaller.com
>
> "<ctacke/>" wrote:
> > I don't recall the key offhand, but it's in the registry.
> > FindFirstStorageCard also works for WM.
>
> > --
> > Chris Tacke
> > OpenNETCF Consulting
> > Managed Code in the Embedded World
> >www.opennetcf.com
> > --
>
> > "Peter Hartlén" <p...@data.se> wrote in message
BOOL FindNextFlashCard(
HANDLE hFlashCard,
LPWIN32_FIND_DATA lpFindFlashData
);
BOOL = Integer
HANDLE = IntPtr or Integer
LPWIN32_FIND_DATA is going to be a structure or an array of bytes of an
appropriate length. It seems to me that someone has wrapped this (in C#, no
doubt, but you can still use it without translating the declaration into
VB.NET). Check with GoogleGroups for past mentions of it in this group:
Paul T.
"drumred" <dru...@discussions.microsoft.com> wrote in message
news:07334A02-162D-4756...@microsoft.com...