============== Change the path of any folder ================
Power
1. A little bit of knowledge
A. in C:/wince600/public/common/oak/files/common. Reg
; The path lookups for shgetspecialfolderpath
; @ Cesysgen if coredll_fileinfo
[HKEY_LOCAL_MACHINE/system/Explorer/Shell Folders]
"Application Data" = loc_path_appdata
"Desktop" = loc_path_desktop
"Favorites" = loc_path_favorites
"Fonts" = loc_path_fonts
"My Documents" = loc_path_mydocuments ents
"Program Files" = loc_path_programfiles
"Programs" = loc_path_programs
"Recent" = loc_path_recent
"Startup" = loc_path_startup
"Windows" = loc_path_windows
; @ Cesysgen endif
Most of the folders are defined above, which are environment variables of wince. The environment variables can also be used in the program.
B. In C:/wince600/public/common/oak/files/intltrns/0409/common. Str
// Paths for shgetspecialfolderpath
# Define loc_path_windows "// windows"
# Define loc_path_desktop "// windows // desktop"
# Define loc_path_startup "// windows // startup"
# Define loc_path_recent "// windows // recent"
# Define loc_path_programs "// windows // programs"
# Define loc_path_favorites "// windows // favorites"
# Define loc_path_fonts "// windows // fonts"
# Define loc_path_mydocuments "// my documents"
# Define loc_path_programfiles "// Program Files"
# Define loc_path_appdata "// Application Data"
Environment Variable path defined above
C. the common file to be modified. STR, wceappsfe. dat, wceshellfe. dat, Shell. dat, these files can be found in the public directory, and there is a copy under the build directory. if only
To change this time, you only need to modify the build directory and then make image.
2. If you want to modify the/My Documents folder to/sys/my documents, and create a link to/sys/My Documents documents under the root directory
A. Modify common. Str in the corresponding language
Modify # define loc_path_mydocuments "// my documents"
# Define loc_path_mydocuments "// sys // my documents"
B. In wceappsfe. dat, wceshellfe. dat, Shell. dat
Root:-directory ("loc_mydocuments_dir")
Root:-directory ("/sys/loc_mydocuments_dir ")
And add
Root:-file ("My documents. lnk", "/Windows/my_documents.lnk ")
C. Create a my_documents.lnk shortcut in the build folder. for how to create a shortcut, see "How to Create a shortcut". Because there are spaces in it, add double quotation marks to "my documents ".
D. Add in platform. bib
My_documents.lnk $ (_ flatreleasedir)/my_documents.lnk NK uh
In this way, make image adds the file to the window.
E. Make Image
Note: All the files operated above are in the build directory.