Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


April 02, 2007

What is the Desktop Windows Manager (DWM)?

RSS
Subscribe to Windows IT Pro | See More Tips Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. One of Windows Vista's most touted features is its new Aero (formerly Aero Glass) graphical scheme, which gives transparent, frosted edges to screen windows, taskbar thumbnails, and task-switch thumbnails. (Aero also enables the new Flip 3D task switcher.) But how do these features actually work?

The new DWM runs as a service: The Desktop Windows Manager Session Service, with an internal name of UxSMS ("ux" stands for "user experience"), is implemented in the dwm.exe image. This service is responsible for compositing the desktop display for the entire OS when you run the Aero scheme.

In all previous OSs (and in Vista when you aren't running Aero), each application writes directly to the screen buffer. In the event that a window passes over the graphical area of another window, the system sends a WM_PAINT message to the application, telling it to redraw its window. If the application is busy, it might not process the WM_PAINT message, resulting in trails left behind the moving window. Also, if you move a window across the screen and it can't redraw fast enough, its window is broken into pieces as you drag the window. (This phenomenon is called tearing.)

DWM changes this situation. The system uses an off-screen buffer to composite each application's off-screen graphical-display buffers, then the DWM draws that buffer to the onscreen buffer. This means that the DWM holds the graphical content of each application, and for each screen refresh it doesn't need the application to redraw its content. Instead, it uses a snapshot of the most recent display update it received from the application to composite the latest buffer onscreen. A non-responsive application won't result in any trails; the DWM will use an off-screen buffer for that application. Note that although the DWM process is always running, it's essentially idle except when the system is in Aero graphical mode. DWM's use of a separate graphical buffer for every running application permits thumbnails of applications and Flip 3D. (APIs are even available that let other applications access the thumbnail technology.) When the OS needs a thumbnail, it simply shrinks the application's graphical buffer, which the DWM has available.

If you're running in any other graphical mode, including Vista Basic, DWM isn't heavily used and the trail behavior of moving windows is still evident. The reason is that the display isn't composited. The DWM process is still running even in non-Aero mode; it still handles Windows Ghosting, which is the process by which a non-responsive window takes on a frosted, whited-out appearance and adds "(Not Responding)" to the end of the window's caption.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

SET Options and Recompilation

Learn how to tweak your server's SET options so that you don't have to constantly recompile. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Configuration Manager SP1 and R2 Overview

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing