SD-card path identification

P

Peter Hartlén

Hi!

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

Regards,

Peter
 
G

Guest

I don't recall the key offhand, but it's in the registry.
FindFirstStorageCard also works for WM.
 
G

Guest

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
 
G

Guest

Help please... I'm a VB coder. How can this translate to a VB app? Thanks.

BOOL FindNextFlashCard(
HANDLE hFlashCard,
LPWIN32_FIND_DATA lpFindFlashData
);
 
P

Paul G. Tobey [eMVP]

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/micr...ork/topics?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.
 

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