Windows Vista - http://www.vistaarticles.com
DWM Effects
http://www.vistaarticles.com/articles/42/1/DWM-Effects
By 
Published on 12/21/2005
 
Enabling and Tweaks

DWM Effects

In Vista CTP Build 5231 the DWM effects are controlled by the User Experience Session Management Service via uxss.exe. To properly enable the DWM effects such as 3D effects and Aero Glass, you should have LDDM drivers for your graphics card. Vista CTP Build 5231 offers native support for a variety of upper mid- to high-level graphics cards and both ATI and NVIDIA have released Alpha or Beta LDDM Drivers for Vista. The DWM effects have once again undergone a major transformation in how they interact with different hardware. DWM appears to work on some cards that are not using LDDM drivers when the disable hardware check tweak is applied; however, using this tweak will not allow some other tweaks to be done, such as the blur effect. Some cards that would not run the DWM effects in Vista Beta 1 are now able to run them in Build 5231. A lot has to do with the drivers you are using, and you may have to experiment with different drivers. In addition, the Media Center Shell that was included with this release seems to have problems with some cards using the LDDM drivers and the Aero Theme. It should also be noted that Microsoft has confirmed that not all the features of Media Center are enabled in this build.

*Performance Note: On video cards that support DWM it has been noted that substantial performance gains relating to 2D and 3D graphics are found if you switch to Classic Mode or turn off DWM effects by disabling the User Experience Session Management Service. In addition performance can also be enhanced when using Aero effects by reducing screen resolution.

**It should be noted that on supported cards many of these options are already enabled by default without the need for a special registry key such as Aero Glass and Animations – adding these keys will allow you to turn these effects off or back on.

The following advice on DWM deployment is provided to help those having DX9 capabilities from their GPU in an otherwise non-Vista-ready machine. Those with Vista-ready hardware may therefore be advised to ignore many of the following DWM tweaks.

In order for these tweaks to work, you must have the User Experience Session Manager enabled and started. To enable this service on system start up, do the following:
Go to the run command and type in services.msc
When the Services Console opens, find the User Experience Session Manager Service. Right click on it and select Properties. In the properties box under the General tab, go to the Startup Type combo box and select Automatic if it isn’t already selected. Click Apply, then click OK then restart your machine.

These registry tweaks will show you how to disable hardware checking so that some unsupported cards will be able to run the DWM effects, as well as some tweaks to enable specific DWM effects.

1) This tweak will disable or enable the hardware checking and allow some unsupported cards to run some of the DWM effects; however, on cards that are natively supported, using this option will disable some of the DWM effects. **Note disabling the hardware check on some supported cards with Aero enabled by default will actually disable the native Aero effects.


To disable hardware check - open Notepad, and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"EnableMachineCheck"=dword:00000000


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file DisableMachineCheck.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

To reverse this and re-enable MachineCheck, open notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"EnableMachineCheck"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file EnableMachineCheck.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

‘EnableMachineCheck’ – 0 will disable the hardware checking, 1 will enable it.

2) This tweak will enable or disable the Aero Glass effect.

To enable Aero Glass - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"Glass"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file AeroGlass.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

To reverse this tweak and change the Aero Glass to Aero - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"Glass"=dword:00000000


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file Aero.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

‘Glass’ - 1 enables the Aero Glass, 0 changes it to the Aero

3) This tweak will allow those using Aero Glass to blur/unblur the transparent part of the window frames. **Note – this effect does not seem to work on cards that have used the disable hardware check tweak to enable Aero effects.

To create the blur effect - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"Blur"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file Blur.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

To reverse this tweak and remove the blur effect - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"Blur"=dword:00000000


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file Unblur.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

‘Blur’ - 1 will enable blur, 0 changes it back to transparent

4) This tweak will change the appearance of the minimize, maximize, and close buttons – elongating them or making them square (on natively supported cards the default is already set to elongated buttons).

To have the buttons appear elongated - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"UseAlternateButtons"=dword:00000000


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file LongButtons.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

To have the buttons appear square - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"UseAlternateButtons"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file SquareButtons.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

UseAlternateButtons – 0 elongates the buttons, 1 makes them square

5) This tweak will enable/disable window animation effects

To enable window animations - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"Animations"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file Animations.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

To disable animations - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"Animations"=dword:00000000


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file NoAnimations.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

‘Animations’ – 0 disables animations, 1 enables animations

6) This tweak allows you to slow the window animations when holding the shift key and minimizing, maximizing, or closing a window – This is one of the coolest effects!

*Note: This tweak needs tweak #5 – animations enabled in order to work.

To enable the slowing of animations with the shift key - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"AnimationsShiftKey"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file EnableShift.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

To disable the slowing of animations with the shift key - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"AnimationsShiftKey"=dword:00000000


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file DisableShift.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

'AnimationsShiftKey' – 0 will disable the slow animations with shift key, 1 will enable it

7) The following registry file is a compilation of the above tweaks and will do the following:

Enable Aero Glass
Enable Blur
Show elongated buttons
Enable Animations
Enable Shift Key for slowing animations

*Note: To use these effects on an unsupported card you must first use the disable machine tweak mentioned above. Also, when running on an unsupported card some of the above tweaks may not work.

To use this registry file to make all these changes at once - open Notepad and copy the following code into the window:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DWM]
"UseAlternateButtons"=dword:00000000
"Blur"=dword:00000001
"Animations"=dword:00000001
"Glass"=dword:00000001
"AnimationsShiftKey"=dword:00000001


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file DwmAll.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge’ – Log off and back on, or restart your machine.

Warning: The following DWM tweak is designed for the Advanced User – this tweak involves direct editing of the registry and may have unforeseen results. If you are not comfortable using the registry editor, skip this tweak. As always, when making changes to the registry, you should always create a backup and make note of any changes you make. While this tweak has been tested, use at your own risk!

8) This tweak will "Render" the client area only – meaning it will remove all the window borders – including the minimize/maximize/close buttons!

*Note – if you enable this tweak the minimize/maximize/close buttons will still be there, but you will not be able to see them and will have to click with luck!

1. Open up Regedit.

2. Navigate thru HKEY_local_machine, Software, and Microsoft.

3. Create a new KEY called DWM if it is not already there.

4. Create a new DWORD called RenderClientAreaOnly inside the DWM Key.

5. Set the new DWORD that you just created to a value of 1.

6. Restart your computer for the effect to activate.
To reverse the effect change the DWORD value to 0