Re: How to get SD card/IPSM name ??



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,
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 ???

I use FindFirstFile and relatives to look for the name of the root
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

.



Relevant Pages

  • Re: How to get SD card/IPSM name ??
    ... I have to perform some operations over IPSM of teh device ... ... with the help of this registry I could know about the name of SD card. ... I am having some 3-4 types of devices and getting the common registry as ... this registry key is just a way of finding out what the name ...
    (microsoft.public.windowsce.embedded)
  • Re: System Hangs with Hive Registry - Only when flash card present at boot
    ... > We have recently integrated IPSM 3.8 and hive registry (stored ... > using IPSM) into our pxa270, ... > fine at boot, its only CF storage cards that have problems. ... > Lastly, if I boot the unit without a CF storage card present, I ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to get SD card/IPSM name ??
    ... Your code would fail on our devices in two different ways: ... other devices don't use PSM in the name of the filesystem folder (because ... Acctually I was using the same way to detect SD card and I got the success ... Same way I am find the name of IPSM .. ...
    (microsoft.public.windowsce.embedded)
  • Re: System Hangs with Hive Registry - Only when flash card present at boot
    ... > IPSM) into our pxa270, ... > when the unit is booted with a compact flash card present. ... If I remove the hive registry component from the build, ... CF ethernet cards work just fine at boot, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to get SD card/IPSM name ??
    ... search in the registry for references to psmfsd.dll to decide yes/no on PSM ... I have to perform some operations over IPSM of teh device ... ... with the help of this registry I could know about the name of SD card. ... this registry key is just a way of finding out what the ...
    (microsoft.public.windowsce.embedded)