Fix DWMAPI.dll Errors in Windows 10 and 11

A dwmapi.dll error may appear when starting a desktop application, opening its window or using a customization utility. The correct repair depends on whether one application fails, the desktop itself misbehaves or Windows reports a damaged system component.
What is dwmapi.dll?
Dwmapi.dll exposes Desktop Window Manager interfaces to applications. These interfaces support interaction with desktop composition and window appearance. Dwmapi.dll and the dwm.exe process are related but different: a crash in one does not automatically establish damage to the other.
1. Identify the exact message and affected program
Record whether the message says the DLL is missing, reports Bad Image, names a missing procedure entry point or appears only in a crash report. If the software is old, check its supported operating systems and obtain the appropriate version from its vendor. Do not force an older DLL into the application's folder to satisfy an entry-point error.
2. Remove recent window customization conflicts
If the issue began after installing a theme patcher, shell modification or window-management tool, use that utility's supported uninstall or restore feature. Restart Windows and test the same application with the default desktop configuration. Disable optional overlays individually. Avoid manually terminating Desktop Window Manager or replacing files used by the Windows shell.
3. Check for a display-driver issue
If the desktop flickers, windows fail to draw or multiple graphics programs crash, install applicable Windows updates and check the official driver for your adapter. If a recently installed driver clearly introduced the symptoms, consider a supported rollback. On dual-GPU laptops, use the manufacturer's recommended driver combination. If the problem is confined to one old program, repair that program first.
4. Check system integrity when the system copy is implicated
Open Reliability Monitor with perfmon /rel and inspect the application failure. Note the faulting module path and exception code. If Windows reports a damaged or missing system file, or several unrelated programs show similar failures, follow the built-in repair steps below. If a suspicious file with the same name appears in an unexpected download folder, scan it rather than executing it.
Repair Windows system files safely
Back up important files and open Terminal or Command Prompt as administrator. Run the first command, wait for it to complete successfully, and then run the second. Restart after repairs and test again. If either command reports an unresolved error, record it rather than downloading replacement DLLs.
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow
See Microsoft's system file repair instructions for details. If the issue remains limited to one application, a clean system scan is a reason to return to application-specific troubleshooting.
How to verify the repair
Restart and open the original application. Resize its window, minimize and restore it, and repeat any action that used to fail. Test other normal desktop applications and inspect Reliability Monitor after the test if instability continues. If only one incompatible program still fails, use a supported version or contact its vendor.
Frequently asked questions
Can I disable Desktop Window Manager to fix this? Do not try to disable a core desktop component on modern Windows. Is every dwmapi.dll error caused by graphics drivers? No; damaged files, incompatible programs and modifications are also possible. Will a registry cleaner restore Dwmapi.dll? No. Use legitimate Windows repair or the affected program's installer as appropriate.
Related repair resources
Microsoft Desktop Window Manager overview · Update or reinstall graphics drivers · Troubleshoot application error 0xc000007b · PC Repair Atlas