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



So, let me rephrase what you're saying and see if I understand correctly.
"I am working in the test division of a company that ships several devices,
some of which use PSM for flash-based storage and some of which do not. I
need to run a test on the PSM filesystem, if it exists, but I need a way to
decide if it does exist" Yes? No? I still think that you're telling us
*how* you're trying to do things, rather than why. If you are a test guy
working on various devices, it seems to me that running the correct test for
the device you're testing is all you need. I suppose that you could do a
search in the registry for references to psmfsd.dll to decide yes/no on PSM
being present and then scan the registry near where you found that psmfsd
reference for possible names. I'm thinking that maybe the quick and simple
answer here is "Ask the user what folder he wants to have scanned."

Paul T.

"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A3F14B93-CDFB-4694-AAF8-037B3717E0C0@xxxxxxxxxxxxxxxx
Yes .. Sure I will tell ...
I have to perform some operations over IPSM of teh device ... Even I can
say
that I have to test the IPSM for some file read/write and some file
execution...
So first I have to find out whether the device have IPSM or not, if yes
then
what is the name of device ... As I replied to Robert, I am getting the
name
of SD card and IPSM with some tricky way .. that may fail in some specific
devices ... So I was seeking for some "Solid" way ... :)




"Paul G. Tobey [eMVP]" wrote:

That's going to depend on the version of PSM. Maybe you should take a
step
back and tell us *why* you want to do this. Why is it important to know
whether PSM is there or not?

Paul T.

"Rahul P. Shukla" <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:4FC5FD1A-69AE-43CF-AA65-97A137604A6B@xxxxxxxxxxxxxxxx
Yes you are right ....
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
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMMC] to get the
name
of
SD crad.
Now I have to search for the location in registry which can give me the
name
of IPSM.

I am still looking for some more way to know the SD card/IPSM name.

Thanks,
Rahul :)
"JochenD" wrote:

Hi Rahul,

the registry key
([HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\...])
doesn't tell you if a card is present or not, it does tell you however
what
the name of the folder should be if a card is present. So once you
find
out
the name of the folder from that registy key, you can then do a search
in
the
root directory (e.g. FindFirstFile() API) to see if the card is
present
or
not. Again, this registry key is just a way of finding out what the
name
of
the folder must be if a storage card is pesent.

best regards
-Jochen

"Rahul P. Shukla" wrote:

Hello Jochen ...
I checked the device registry as u told ..but registry setting are
unaffected whether SD card is inserted or not. So I wont be able to
know if
card is inserted or IPSM is present.

Well .... my problem is still there .. :)
Thanks for ur reply ....

- rahul

"JochenD" wrote:

Hi Rahul,

under Windows CE, normally the names of the SD Card / MMC card /
USB
stick... folders are stored in the registry under the key:
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\...]

eg:
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory]
"Folder"="Storage Card SD"
...

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC]
"Folder"="Storage Card MMC"
...

It might be a possibility for you to retreive these names using
the
registry
API and then do a FindFirstFile() or something along these lines.
For
further
information about the registry key or the registry API you can
consult the
Platform Builder help.

Best regards
-Jochen

"Rahul P. Shukla" 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 ???

Thanks a lot .






.



Relevant Pages

  • Re: How to get SD card/IPSM name ??
    ... 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 ... API and then do a FindFirstFileor something along these lines. ...
    (microsoft.public.windowsce.embedded)
  • 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: re-installing Delphi Application
    ... Do you know if the RegSvr32 modifies the registry? ... >If the JumpDrive is what I think it is, and is run through the USB, ... That took them a while since the card wasn't recognized ... I'll have my customer contact the hardware ...
    (comp.lang.pascal.delphi.misc)
  • RE: How to get SD card/IPSM name ??
    ... 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 ... card is inserted or IPSM is present. ... API and then do a FindFirstFileor something along these lines. ...
    (microsoft.public.windowsce.embedded)
  • Re: Mount CF card using ATAPI
    ... IDE channell you should use: ... I have to mount the CF card during the first phase of boot. ... registry that is generated on the CF card. ...
    (microsoft.public.windowsce.platbuilder)