Thanks a lot …
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
Well .... my problem is still there .. :)
Thanks for ur reply ....
- 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
I am still looking for some more way to know the SD card/IPSM name.
Thanks,
Rahul :)
Paul T.
"Rahul P. Shukla" <RahulP...@discussions.microsoft.com> wrote in message
news:4FC5FD1A-69AE-43CF...@microsoft.com...
>> > > > Thanks a lot .
>> > > >
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
Thanks for the reply :)
- Rahul
Paul T.
"Rahul P. Shukla" <RahulP...@discussions.microsoft.com> wrote in message
news:FC92AEA3-2A9C-4F03...@microsoft.com...
>> >Thanks a lot .
Paul T.
"Rahul P. Shukla" <RahulP...@discussions.microsoft.com> wrote in message
news:A3F14B93-CDFB-4694...@microsoft.com...
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:
- Rahul
Paul T.
"Rahul P. Shukla" <RahulP...@discussions.microsoft.com> wrote in message
news:A7083696-98F2-4B1E...@microsoft.com...