How to create and use your own Shell in Wince5.0

Source: Internet
Author: User
Environment:
Wince5.0 + ARM926
Purpose:
Create Shell in your own style
Background:
Considering the consistency of the appearance and style of the product, you cannot directly use Explorer as a Shell, and you do not have to simply put Explorer directly in the background (some problems may occur, such as the instant of startup, explorer will display)
Method:
1. Modify Explorer directly to your own style. I personally think this is the most fundamental and most effective method, but the workload is large, considering that time can only be abandoned.
2. Replace Explorer directly with your own Shell. In Shell. reg
[HKEY_LOCAL_MACHINE \ init]
"Launch50" = "assumer.exe"
"Depend50" = hex: 14,00, 1e, 00
This statement starts Explorer at the end of startup. (The meaning and usage of Launchxx are explained in the help of PB ).
Replace assumer.exewith another shell( for example, myshell.exe). This method has always been used.
However, this method is flawed: the Common Dialog of wince depends on Explorer, which leads to problems in executing many built-in programs of Wince, such as the failure to open and save WordPad... (If anyone knows how to use Common Dialog without starting Explorer, please tell the younger brother)
3. Now, make a slight modification to the Explorer to ensure that the display is correct and then put it in the background. The steps are as follows:
3.1. Follow the prompts in PB Help to modify the Explorer (if you modify the registry, try not to modify the Explorer Code)
A. Copy wince500 \ public \ shell \ oak \ hpc to the wince500 \ public \ shell \ oak directory and rename it to myshell.
B. Modify the Dir File
C. Remove "Microsoft Windows CE..." displayed on the desktop ...........":
Change # ifndef ship_build in topview. cpp to # If 0.
(Theoretically, this text segment cannot be displayed in platform setting, but it does not work for some reason)
D. Modify the height when taskbar is automatically hidden:
In taskbar. hxx, change taskbar_height_autohide to 0.
E. Remove the music when explorer is started:
Comment out sndplaysound (c_szsystemstart, snd_alias | snd_async | snd_nodefault) in winmain.
(The key value of the boot music is not found in the registry. If anyone knows this, please do not hesitate to inform me)
3.2. Modify the Registry
A. Shell. Reg: remove the "My device" and "recycle bin" icons from the desktop.
Find
[HKEY_LOCAL_MACHINE \ Explorer \ Desktop]
"{000214a0-0000-0000-c000-000000000046}" = "My device"
"{000214a1-0000-0000-c000-000000000046}" = "recycle bin"
Change
[HKEY_LOCAL_MACHINE \ Explorer \ Desktop]
; "{000214A0-0000-0000-C000-000000000046}" = "My Device"
; "{000214A1-0000-0000-C000-000000000046}" = "Recycle Bin"
B. Remove other shortcuts on the desktop.
Wince uses Directory ("\ Windows \ loc_shorttop_dir"):-File ("LOC_MSPWORD_LNK", "\ Windows \ wordpad. lnk") to create shortcuts on the desktop
Comment out all directories ("\ Windows \ loc_shorttop_dir"):-File (...) in WINCE500 \ PUBLIC \ WCEAPPSFE \ OAK \ FILES \ wceappsfe. dat.
Comment out all directories ("\ Windows \ loc_shorttop_dir"):-File (...) in WINCE500 \ PUBLIC \ WCESHELLFE \ OAK \ FILES \ wceshellfe. dat.
C. Set Taskbar to Auto Hide
Add
; -- Hide the taskbar automatically by default
[HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Shell \ AutoHide]
@ = "1"

; -- Make the taskbar not always at the beginning by default
[HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Shell \ OnTop]
"" = Dword: 0
D. Modify the desktop background color.
[HKEY_LOCAL_MACHINE \ SYSTEM \ GWE]
"SysColor" = hex :\
,\
, \ // Background color of the Desktop window, which is now set to black
,\
,\
EF, EB, DE, 00 ,\
FF, 00 ,\
,\
,\
,\
FF, 00 ,\
C0, C0, C0, 00 ,\
C0, C0, C0, 00 ,\
80, 80, 80, 00 ,\
31,69, C6, 00 ,\
FF, 00 ,\
EF, EB, DE, 00 ,\
AD, AA, 9C, 00 ,\
80, 80, 80, 00 ,\
,\
,\
FF, 00 ,\
73, 6D, 63,00 ,\
FF, 00 ,\
,\
FF, FF, E1, 00 ,\
EF, EB, DE, 00 ,\

E. Background Image
[HKEY_CURRENT_USER \ ControlPanel \ Desktop]
"Wallpaper" = "\ NandDisk \ Startup \ wallpaper.bmp"
F. Start your own shell.
[HKEY_LOCAL_MACHINE \ init]
"Launch70" = "\ Windows \ shellloader.exe"
"Depend70" = HEX: 14,00, 1e, 00

Effect: After the system is started, start assumerto display wallpaper.bmp, and then start shellloader.exe.

Related Article

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.