Microsoft Longhorn

DWM & Graphics Aero done right

A lot of people have been struggling to get Aero to work in build 4074. In this post I want to show you how Aero can be enabled along with a little history. If you came here looking for information about Aurora, please see my post about Aurora & Aero.

A theme with two faces

During the development of Longhorn the exact look of the Aero theme was kept a good secret. Aero remained off-limits even for most shell developers. Two developers that surely had access are Kam Vedbrat and Scott Hanggie. Until September 2004, Kam Vedbrat had been a lead program manager on the Aero effort by the shell team. On Channel9, he elaborates on how Aero is designed.

According to internal documentation, personal authorization by Scott Hanggie was required to get access to the Aero theme files. Scott is also one of the patent holders for the Compositing Desktop Window Manager. The screenshot below is part of that very patent filing. The image shows some of Aero’s most notable features: aurora in the preview panel and transparent borders - features that were, at the time, still highly confidential.

Note that only the border is transparent. Probably, MILExplorer has not been set in the registry.

Although there is no way to tell when this screenshot was taken and on which build, I tend to think it was taken on one of the many 4050 lab06_demo builds compiled during 2003 leading up to the PDC 2003 demo build. By default, the build from the lab06_demo branch had an appearance similar (if not identical) to the publicly released build at PDC 2003, 4051. In contrast to the public build these builds, however, did have full support for Aero. The sad news that the public build would not yet feature Aero was brought by Paul Thurrott in September:

For the past several weeks, Microsoft has forked the Longhorn code to develop a special PDC build that’s separate and distinct from the main code fork. This build will include virtually every Longhorn technology except Aero(…)

Not only was Aero missing, but the complete DWM system was crippled. Even ordinary Microsoft employees couldn’t get their hands on all the shiny Aero stuff. Instead, developers were to use the placeholder Jade theme. This theme had a far less attractive silvery finish and borders weren’t transparent, but instead an ugly greenish color. This short video snippet taken during PDC 2003 by Paul Thurrott and Keith Furman makes apparent that Aero just wasn’t for everyone yet.

When build 4074 was given to attendees of the WinHEC 2004 event people immediately started wondering whether Aero was present in this build as well. In a webcast , highlighting the progress made in build 4074 technical evangelist Dave Massy said:

You are not going to notice a huge visual difference from the previous builds of Longhorn. We still have a lot of work before we actually turn on the next-generation user experience.

Although Microsoft employees denied any claims of Aero and DWM being present and even claiming that it was left out this build on purpose, DWM was found working in build 4074. It was discovered that the Jade theme present in builds 4066 and up could unlock parts of the Aero style.

Getting ourselves some Aero

Before trying to enable Aero be sure to have a look at this post I wrote earlier: Destkop Compositing. On that page I explain everything you need to know to get DWM working on your (virtual) machine. So, go have a look there - I’ll wait.

Okay, done that? Now that you have installed the proper drivers, it’s probably a good thing to reboot the computer for the changes to take effect (if you haven’t, do so already).

To convert Jade to Aero you need to rename the theme files and edit the .theme file. If you are using the ‘TWIWMTB’ 4074 version you can skip the rest of this step and head on to the next one.

  • Browse to C:\Windows\Resources\Themes\ and copy the file jade.theme and the jade folder to another directory.
  • Rename jade.theme to aero.theme. Rename the folder to aero too.
  • Delete jade.msstyles and replace it with this pre-patched copy by Lucas Brooks here.
  • Open the aero.theme with notepad or wordpad and change [email protected],-203 to DisplayName=Aero.
  • Next, replace the remaining two instances of the word jade in the same file with aero (use CTRL+H).
  • Copy the newly created aero.theme and the aero folder back in the C:\Windows\Resources\Themes\ directory.
  • Browse to: HKLM\Software\Microsoft\Windows\CurrentVersion\ThemeManager. In this key, create a DWORD called DemoCheckOverride and set the value to 64222 (or 0xFADE in hexadecimal).

Transparency

Now we are going to enable the beautiful transparency that we so longed for. All we need to do is add a registry key. Open the registry editor (regedit). Browse to: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer. In this key, add a DWORD called MILExplorer and set its value to 1. If you would also like to enable the Aero stars, also add a DWORD called MILDesktop with the value of 1. The moment has come to get a glimpse of Longhorn glory: go to Display Properties and choose the newly created Aero theme. Apply the settings. After the theme is applied you will be greeted by a nice transparent taskbar and sidebar.

Results

If everything went correct, you should end up with something like the picture below. Note that the screenshot also shows the Animated Aurora Preview Pane. More information on how to patch the theme can be found in another post. You might have also noticed that the borders on all windows are still actually opaque and not the Aero translucent kind. Unfortunately, the original resources are not available in any build. There are, however, a few very good patched theme files with transparency available on the internet as well as a build of 4074 (TWIWMTB) that has a pre-patched theme file.

Aero taskbar and sidebar show up when using an altered version of the Jade theme

Using the pre-patched Aero theme provided by Lucas Brooks