While playing with the BT box, we noticed an odd problem.
We could only execute programs that we uploaded if they were in the \windows folder.
This is because the WinCE Kernel has an option to verify exe and dll files before they are allowed to start.
The applications that are currently outside of the \windows folder are signed, and therefore run correctly.
I have written a tool to patch the CE kernel inside of the NK.BIN file. This then allows programs to run from any directory on the hard drive.
It can be downloaded from here:
[SHOWTOGROUPS=80]http://www.megaupload.com/?d=ZX1A8BMN[/SHOWTOGROUPS]
This means it is easier to modify the main application, and just load it onto the hard drive instead of modifying the NK.BIN every time.
The main application (TV2ClientCE.exe) will decompile to IL code with ILDASM, and recompile OK with ILASM.
I have made some small modifications to the code, and recompiled it, and it still runs. So it should be possible to create a stand alone box, or add limited extra functionallity.
It is also possible to remote debug and set breakpoints in visual studio using the above method (ILASM with the /debug switch).
Still early stages yet....
Mick
Social Networking Bookmarks