当前位置:首页 > 编程开发

wince 界面定制--在shell原码上修改步骤

webgou16年前 (2010-08-13)编程开发178

wince 界面定制--在shell原码上修改步骤:(在x86环境下,修改ceshell中的代码)
1、将WINCE500\PUBLIC\SHELL\OAK目录下的HPC文件夹(shell源码)复制到本文件夹下,将该文件夹改名,如myshell
2、修改WINCE500\PUBLIC\SHELL\OAK目录下dir文件,修改如下:
                        DIRS=myshell \
3、将myshell内代码单独编译。运行PB5.0中菜单Build OS—〉Open Release Directory,进入DOS状态。
进入\WINCE500\PUBLIC\SHELL\OAK目录下,输入:build -c。将myshell文件夹下代码,及wince shell源码进行编译生成.lib及.res文件
4、将.lib及资源文件Link成.dll文件
ceshell文件夹下创建ceshell_make文件夹,在ceshell_make文件夹下创建makefile和sources文件
makefile文件内容:
!INCLUDE $(_MAKEENVROOT)\makefile.def
sources文件内容:
TARGETNAME=ceshell
TARGETTYPE=DYNLINK

RELEASETYPE=PLATFORM
DLLENTRY=_DllMainCRTStartup

WINCEOEM=1
INCLUDES=..\;..\..\inc

TARGETLIBS= E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\oak\target\x86\retail\0409\ceshell.res E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\uuid.lib E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\ole32.lib E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\oleaut32.lib E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\commctrl.lib E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\oak\lib\x86\retail\shcore.lib E:\WINCE500\public\shell\oak\lib\x86\retail\aygutils.lib E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\coredll.lib
SOURCELIBS= E:\WINCE500\public\shell\oak\lib\x86\retail\ceshapi.lib E:\WINCE500\public\shell\oak\lib\x86\retail\ceshui.lib E:\WINCE500\public\shell\oak\lib\x86\retail\taskbarlist.lib E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\coredll.lib
                                                                                             

SOURCES= \
CDEFINES=$(CDEFINES) -DREAD_FROM_REGISTRY
DEFFILE=E:\WINCE500\public\shell\oak\lib\x86\retail\ceshell.def
这样就可以通过这两个文件生成ceshell.dll;
运行PB5.0中菜单Build OS—〉Open Release Directory,进入DOS状态。进入到
WINCE500\PUBLIC\SHELL\OAK\myshell\ceshell_make目录下,输入:build -c。
这样就生成了ceshell.dll文件。
5、将.lib及.res文件Link成.exe文件
在myshell文件夹下创建explorer_make文件夹,在explorer_make文件夹下创建makefile和sources文件
makefile文件内容:
!INCLUDE $(_MAKEENVROOT)\makefile.def
sources文件内容:
TARGETNAME=explorer1
TARGETTYPE=PROGRAM
RELEASETYPE=OAK
TARGETLIBS= \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\coredll.lib \
  E:\WINCE500\public\shell\oak\lib\x86\retail\explorer.lib \
  E:\WINCE500\PUBLIC\SHELL\OAK\LIB\x86\RETAIL\explorer.res \
  E:\WINCE500\public\shell\oak\lib\x86\retail\explorer_ie.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\uuid.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\ole32.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\oleaut32.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\commctrl.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\sdk\lib\x86\retail\ceshell.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\oak\lib\x86\retail\shcore.lib \
  E:\WINCE500\public\shell\oak\lib\x86\retail\aygutils.lib \
  E:\WINCE500\public\shell\oak\lib\x86\retail\favorites.lib \
  E:\WINCE500\public\shell\oak\lib\x86\retail\taskbar.lib \
  E:\WINCE500\PBWorkspaces\test1\WINCE500\Emulator_x86\cesysgen\oak\lib\x86\retail\ieceext.lib \
  E:\WINCE500\public\shell\oak\lib\x86\retail\shellaygfuncs.lib \
  E:\WINCE500\public\shell\oak\lib\x86\retail\shellpslayg.lib \
 
SOURCELIBS= \
SOURCES= \
这样就能通过这两个文件,单独生成explorer1.exe文件
运行PB5.0中菜单Build OS—〉Open Release Directory,进入DOS状态。进入到
WINCE500\PUBLIC\SHELL\OAK\myshell\explorer_make目录下,输入:build -c。
这样就生成了explorer1.exe文件。
6、将shell.reg中的
[HKEY_LOCAL_MACHINE\init]
"Launch50"="explorer.exe"
"Depend50"=hex:14,00, 1e,00
改为
[HKEY_LOCAL_MACHINE\init]
"Launch50"="explorer1.exe"
"Depend50"=hex:14,00, 1e,00
这样就可以修改shell中的代码了!
7、修改shell.bin中的
; @CESYSGEN IF SHELL_MODULES_EXPLORER
    explorer1.exe    $(_FLATRELEASEDIR)\explorer1.exe                  NK  S
8、将explorer1.exe、ceshell.dll、ceshell.rel、ceshell.pdb和ceshell.map文件拷到
E:\WINCE500\PBWorkspaces\test1\RelDir\Emulator_x86_Debug目录下并覆盖原来的文件。
这样再makeimg就可以将你修改后的代码装载到你的模拟器中了!

扫描二维码推送至手机访问。

版权声明:本文由知了博客发布,如需转载请注明出处。

本文链接:https://www.webgou.info/?id=269

标签: wince
分享给朋友:

“wince 界面定制--在shell原码上修改步骤 ” 的相关文章

TBS X5内核SDK静态集成jar完美解决方案

 前言:本篇文章用于解决TBSx5静态无法成功启动的问题...…

JVM terminated. Exit code=13 问提解决

在ubuntu 10.4 下载eclipse出现: JVM terminated. Exit code=13 原因是:eclipse 32安装在ubuntu 64 位上,应该安装eclipse 64程序…

Firefox about: pages

Special pages available in firefox : about: A simple prompt without any parameter will display the Mozilla “about” information. abou…

nutch应用

    Nutch是一个基于Lucene,类似Google的完整网络搜索引擎解决方案,基于Hadoop的分布式处理模型保证了系统的性能,类似Eclipse的插件机制保证了系统的可客户化,而且很容易集成到自己的应用之中。    Nutch 0…

Android消息传递应用功能解析

Android手机操作系统中有一种叫做Intent的消息传递机制。这在实际编程中是一个核心技术,值得我们去深入的研究。在这里大家将会了解到有关Android消息传递的一些基础应用技巧,帮助大家理解。每一个Cursor、ContentResolver做为一个小的注册中心,相关观察者可以在这个中心注册,…

查看apk的versionCode的2种方式

 1.使用adb来查询,前提是你已经安装到设备上了。 ...…

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。