Home > Archive > Smartphone Developer Forum > April 2006 > Way to figure Default storage volume on a Smartphone ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Way to figure Default storage volume on a Smartphone ?
|
|
|
| I have confirmed that any file put into the \Windows folder vanishes when i
change the battery but those under \Storage\Windows remains.
So the Q is, is there an API to figure out the default storage volume on a
Smartphone (\Storage in this case).
Thanks.
Shiva
"Shiv" wrote:
[color=darkred]
> Hi Yaroslav ,
>
> I tried this on the Smartphone and here is the deal. The coredll.dll is in
> fact being loaded from \Windows folder BUT the DLLs that get installed via
> the CAB file (where i have configured them to be installed to the Windows
> folder by using %CE2%) get installed to \Storage\Windows where \Storage is
> the Permanent Storage Module volume. I guess the difference between the 2
> windows location is that in the \Windows location user files wont survive if
> the battery dies etc but anything under th e\Storage\Windows will.
>
> The nature of my requirement is such that i do need to know the action
> folder to which my DLLs are installed via the CAB format.
>
> -Shiva
>
>
>
> "Yaroslav Goncharov" wrote:
>
| |
|
| Shiv wrote:
> I have confirmed that any file put into the \Windows folder vanishes when i
> change the battery but those under \Storage\Windows remains.
>
> So the Q is, is there an API to figure out the default storage volume on a
> Smartphone (\Storage in this case).
see GetPSM():
http://homepages.inspire.net.nz/~gambit/Article/#psm
riki
----
What happens if a big asteroid hits Earth? Judging from realistic
simulations involving a sledge hammer and a common laboratory frog, we
can assume it will be pretty bad.-- Dave Barry
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
| |
| Norman Diamond 2006-03-23, 7:08 pm |
| "riki" <see_my_home@page> wrote in message
news:eP9q8$rTGHA.2244@TK2MSFTNGP14.phx.gbl...
> Shiv wrote:
>
> see GetPSM():
> http://homepages.inspire.net.nz/~gambit/Article/#psm
Yes, but Shiv's original problem remains.
SHGetSpecialFolderPath(... CSIDL_WINDOWS ...)
gets The Windows Folder, which might be one of the two The Windows Folders,
but who knows.
GetPSM() gets Shiv's \Storage folder.
If SHGetSpecialFolderPath(... CSIDL_WINDOWS ...) gets The Windows Folder
which happens to be The one under the \Storage folder then Shiv is lucky,
she can use this.
If SHGetSpecialFolderPath(... CSIDL_WINDOWS ...) gets The other The Windows
Folder then Shiv still can't find the one she needs.
| |
| Bill Stelzel [MSFT] 2006-03-23, 10:05 pm |
| SHGetSpecialFolderPath with CSIDL_WINDOWS is the correct API to use. It will
return the correct directory for applications to use (\storage\windows in
this case).
--
Bill Stelzel [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
"Norman Diamond" <ndiamond@community.nospam> wrote in message
news:uYR9s6tTGHA.4956@TK2MSFTNGP09.phx.gbl...
> "riki" <see_my_home@page> wrote in message
> news:eP9q8$rTGHA.2244@TK2MSFTNGP14.phx.gbl...
>
> Yes, but Shiv's original problem remains.
> SHGetSpecialFolderPath(... CSIDL_WINDOWS ...)
> gets The Windows Folder, which might be one of the two The Windows
> Folders, but who knows.
>
> GetPSM() gets Shiv's \Storage folder.
>
> If SHGetSpecialFolderPath(... CSIDL_WINDOWS ...) gets The Windows Folder
> which happens to be The one under the \Storage folder then Shiv is lucky,
> she can use this.
>
> If SHGetSpecialFolderPath(... CSIDL_WINDOWS ...) gets The other The
> Windows Folder then Shiv still can't find the one she needs.
| |
|
| CSIDL_WINDOWS worked. It returns the right location.
Unfortunately I could not find this ID in the eVC 4 help files and hence my
search for this.
Thanks a lot Bill and to everyone who pitched in.
-Shiva
"Bill Stelzel [MSFT]" wrote:
> SHGetSpecialFolderPath with CSIDL_WINDOWS is the correct API to use. It will
> return the correct directory for applications to use (\storage\windows in
> this case).
>
> --
> Bill Stelzel [MSFT]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Norman Diamond" <ndiamond@community.nospam> wrote in message
> news:uYR9s6tTGHA.4956@TK2MSFTNGP09.phx.gbl...
>
>
> .
>
|
|
|
|
|