I was poking around with Windows CE stuff. I always thought in order to load and display the full Windows CE desktop enviroment, one would need to create a new BSP for WCE Platform Builder and compile it for SH4
Turns out, the Desktop Enviroment is just a "Shell" that runs on top of the WCE kernel. Which we already have from the WCE Dreamcast SDK
https://msdn.microsoft.com/en-us/library/aa452726.aspx
https://msdn.microsoft.com/en-us/library/aa453936.aspx
There is source code for a sample Shell in Windows CE 2.11 Platform Builder (Latest Dreamcast version is 2.12). I had to comment a bunch of stuff out for battery and touch screen, and gather a few missing header files to compile it. Then launched it with "Autorun". Here is the WinDBG output
So it does attempt to load the Shell, but launching it this way it halts at "Sega: Produced or Licenced by..." screen
Reading further into the MSDN October 2001 library, it needs to be launched from the registry hive when the kernel is being mapped into ROM
Launching it this way, without anything in "Autorun", after the kernel is mapped into ROM, the screen goes black attempting to draw the Shell, but because I have no idea how to code and commented out vital stuff, it crashes and the system resets (Normally if you didn't have anything in "Autorun" it would halt at "Sega: Produced by....." and do nothing)
This I think proves the concept. I'll attach the sample Shell source code with the added WCE DC SDK project files. If someone has the skills and wants to attempt, this wouldn't be too hard at all
Things to note for someone who attempts:
If this works, a mouse driver would need to be developed. We would be able to use the Dreamcast like a full PC, and with an SD card driver, we'd be able to launch games and homebrew apps making it a more powerful alternative to Dreamshell for Windows CE
I'd really like to see someone get this up and running, it does work I just can't code
Turns out, the Desktop Enviroment is just a "Shell" that runs on top of the WCE kernel. Which we already have from the WCE Dreamcast SDK
https://msdn.microsoft.com/en-us/library/aa452726.aspx
https://msdn.microsoft.com/en-us/library/aa453936.aspx
There is source code for a sample Shell in Windows CE 2.11 Platform Builder (Latest Dreamcast version is 2.12). I had to comment a bunch of stuff out for battery and touch screen, and gather a few missing header files to compile it. Then launched it with "Autorun". Here is the WinDBG output
So it does attempt to load the Shell, but launching it this way it halts at "Sega: Produced or Licenced by..." screen
Reading further into the MSDN October 2001 library, it needs to be launched from the registry hive when the kernel is being mapped into ROM
This I think proves the concept. I'll attach the sample Shell source code with the added WCE DC SDK project files. If someone has the skills and wants to attempt, this wouldn't be too hard at all
Things to note for someone who attempts:
- There's a bunch of missing header files, I have all of them but they might not be the right versions, ShellExecuteEx() gives undeclared identifer errors which should be in ShellAPI.h
- You need Shell32.lib and SHLWAPI.lib or you'll get linker errors, there was one linker error for ShellExecuteEx, which is listed in the library when using dumpbin
- Instaling Windows CE 2.11 Platform Builder will break the Windows CE Dreamcast SDK, message me for WCE 2.11 include files or install Platform Builder in a virtual machine
If this works, a mouse driver would need to be developed. We would be able to use the Dreamcast like a full PC, and with an SD card driver, we'd be able to launch games and homebrew apps making it a more powerful alternative to Dreamshell for Windows CE
I'd really like to see someone get this up and running, it does work I just can't code