all groups > dotnet compact framework > january 2007 >
You're in the

dotnet compact framework

group:

SD-card path identification


Re: SD-card path identification ctacke/
1/31/2007 9:13:07 AM
dotnet compact framework: 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
--


[quoted text, click to view]

SD-card path identification Peter Hartlén
1/31/2007 2:31:54 PM
Hi!

How do you correctly determine the path to an inserted storage card in
Windows Mobile CF using C#?

Regards,

Peter

Re: SD-card path identification JamesFielding
2/6/2007 12:29:01 AM

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


[quoted text, click to view]
Re: SD-card path identification jonfroehlich
2/6/2007 7:28:19 PM
According to the Windows Mobile Team Blog, you _should_ use
FindFirstFlashCard (link: http://blogs.msdn.com/windowsmobile/archive/2006/=
07/26/678742.aspx).
I've used it successfully on a variety of HTC WM5 SmartPhone devices
(but it sounds like you should test it out for yourself).

--
http://csharponphone.blogspot.com/

On Feb 6, 12:29 am, JamesFielding
[quoted text, click to view]

Re: SD-card path identification drumred
3/7/2007 9:18:13 PM
Help please... I'm a VB coder. How can this translate to a VB app? Thanks.

BOOL FindNextFlashCard(
HANDLE hFlashCard,
LPWIN32_FIND_DATA lpFindFlashData
);

[quoted text, click to view]
Re: SD-card path identification Paul G. Tobey [eMVP]
3/8/2007 11:00:54 AM
You have to P/Invoke that call.

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:

http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/topics?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

[quoted text, click to view]

AddThis Social Bookmark Button