Home > Archive > Smartphone Developer Forum > March 2006 > How to get the Windows folder 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 |
How to get the Windows folder on a Smartphone
|
|
|
| I have a Samsung i600 running Smartphone 2003 OS. There are 2 windows folder
on the device. One under \Windows and one under \Storage\Windows.
I assume that \Windows folder is volatile whereas \Storage\Windows is not.
When i create a CAB file and install it, it puts the DLL files to
\Storage\Windows folder.
Now what i want is to know on the Device, how to figure out what is the
Windows folder on the device.
I checked both SHGetSpecialFolderPath() and SHGetSpecialFolderLocation()
APIs but none of them provide a CSIDL value for figuring out the Windows
folder.
The only way i see is to get the CSIDL_STARTUP folder and then figure the
windows folder path but then i would be assuming too much. So before i go
down that path i would like to know if there is an alternative.
Thanks in advance.
-Shiva
| |
| Yaroslav Goncharov 2006-03-23, 7:08 pm |
| Take a look at
http://www.pocketpcdn.com/articles/...al_folders.html
--
Yaroslav Goncharov
Spb Software House, http://spbsoftwarehouse.com
Pocket PC Developer Network, http://pocketpcdn.com
"Shiv" <Shiv@discussions.microsoft.com> wrote in message
news:EB65D613-8648-48A0-AB41-90FFC8266EDD@microsoft.com...
>I have a Samsung i600 running Smartphone 2003 OS. There are 2 windows
>folder
> on the device. One under \Windows and one under \Storage\Windows.
>
> I assume that \Windows folder is volatile whereas \Storage\Windows is not.
>
> When i create a CAB file and install it, it puts the DLL files to
> \Storage\Windows folder.
>
> Now what i want is to know on the Device, how to figure out what is the
> Windows folder on the device.
>
> I checked both SHGetSpecialFolderPath() and SHGetSpecialFolderLocation()
> APIs but none of them provide a CSIDL value for figuring out the Windows
> folder.
>
> The only way i see is to get the CSIDL_STARTUP folder and then figure the
> windows folder path but then i would be assuming too much. So before i go
> down that path i would like to know if there is an alternative.
>
> Thanks in advance.
>
> -Shiva
>
| |
|
| 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:
> Take a look at
> http://www.pocketpcdn.com/articles/...al_folders.html
>
> --
> Yaroslav Goncharov
> Spb Software House, http://spbsoftwarehouse.com
> Pocket PC Developer Network, http://pocketpcdn.com
>
>
> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> news:EB65D613-8648-48A0-AB41-90FFC8266EDD@microsoft.com...
>
>
>
|
|
|
|
|