Wince 6.0 tutorial-Lesson 5. Change any folder path

Source: Internet
Author: User

============== 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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.