Re: How to get SD card/IPSM name ??
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 21 Apr 2008 08:51:13 -0700
Yes, that's a limitation. If you can't figure it out from the registry,
possibly in combination with the results of FindFirstStore/FindNextStore,
then you can't do it. There's no way that Windows CE enforces drivers to
indicate whether they are based on PSM or not! Windows CE knows nothing
about PSM, anyway; it's just another mass storage driver to it.
Paul T.
"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A7083696-98F2-4B1E-B01D-D1CCB845B5C8@xxxxxxxxxxxxxxxx
Yes, I did check FindFirstStore/NextStore. But I was not able to recognize
which one is SD card (with the name displayed by device) and which one is
FFS.
I checked all the variables of STOREINFO structure, but couldn't get the
name and type of the storage. evertime API was saying the same DeviceType
for
everthing found.
- Rahul
"Michel Verhagen (eMVP)" wrote:
You should have a look at FindFirstStore/NextStore.
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog
GuruCE
http://GuruCE.com
Consultancy, training and development services.
Paul G. Tobey [eMVP] wrote:
Your code would fail on our devices in two different ways: 1. Some
devices
mount PSM as the root of the filesystem, so you'd have to check "\", 2.
The
other devices don't use PSM in the name of the filesystem folder
(because
our users don't care what "PSM" is).
Paul T.
"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:FC92AEA3-2A9C-4F03-B4CF-5A85F7825937@xxxxxxxxxxxxxxxx
Hi Robert,
Acctually I was using the same way to detect SD card and I got the
success
too .. :) This is a tricy way to find out SD cards ...... this formula
may
fail some where ....I dont know where ....
So I was looking for some solid way to detect SD card and getting its
name
...
Same way I am find the name of IPSM .. I am looking for any directry
whish
hase TEMPORARY attribute .... And then filtering with the name of
Flash
File
Store, PSM, or any string containing FFS ... So here are chances too
that
my
code may fail on some specific hand held device which have IPSM with
another
name ....
Thanks for the reply :)
- Rahul
"BobZ" wrote:
On Thu, 3 Apr 2008 03:31:00 -0700, Rahul P. Shukla
<RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,I use FindFirstFile and relatives to look for the name of the root
In my application I have to detect programmatically SD card (if
inserted)
and IPSM (if available in the device). I am using FindFirstStore,
GetStoreInfo, FindNextStore APIs but not getting the names of SD
card
and
IPSM.
Is there any other way to detect and get the name of inserted SD
card
and
IPSM ???
folder, but that can vary. So I check for names that begin with
"IPSM", "Storage_", "Storage", "CF Card", "SD Card", and "Memory
Card". I don't check the whole string because the name can accumulate
a number (e.g., CF Card 2) if one card replaces another, or even if
one card is removed and reinserted.
For at least some, newer, platforms, FindFirstFlashCard will find
storage cards, but I don't use it. And I wonder whether it will find
IPSM.
Thanks a lot .-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and
please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.
- References:
- How to get SD card/IPSM name ??
- From: Rahul P. Shukla
- Re: How to get SD card/IPSM name ??
- From: BobZ
- Re: How to get SD card/IPSM name ??
- From: Rahul P. Shukla
- Re: How to get SD card/IPSM name ??
- From: Paul G. Tobey [eMVP]
- Re: How to get SD card/IPSM name ??
- From: Michel Verhagen (eMVP)
- Re: How to get SD card/IPSM name ??
- From: Rahul P. Shukla
- How to get SD card/IPSM name ??
- Prev by Date: Re: How to trigger the mainboard buzzer?
- Next by Date: User interface and services.exe
- Previous by thread: Re: How to get SD card/IPSM name ??
- Next by thread: Digest Auth in Wininet for WinCE
- Index(es):
Relevant Pages
|
|