Windows file

d3d9.dll: the genuine Direct3D 9 Runtime, or a copy someone put in your game folder?

d3d9.dll is the Direct3D 9 Runtime, the Windows library older games use to draw their graphics. The copies in System32 and SysWOW64 are genuine and safe. A d3d9.dll next to a game's .exe is never Windows' copy: a graphics mod, a translation layer, a cheat or a repackaged game put it there, and it runs inside the game.

Prefer to do it yourself? The manual steps follow.

Genuine Windows file

d3d9.dll in C:\Windows\System32 (and C:\Windows\SysWOW64 on 64-bit Windows) is a genuine Microsoft file and is safe. Windows keeps it so that games and programs built on DirectX 9 can draw on screen, and updates it with Windows. Do not delete or replace it: every DirectX 9 game would stop starting.

Games look for d3d9.dll in their own folder before System32, so any file with this name next to a game's .exe is loaded and run by the game. Graphics mods use this on purpose; cheats and repackaged mods can carry harmful code the same way. HijackLibs also lists the Windows Magnifier, magnify.exe, as a program that loads a d3d9.dll planted beside it. Check the folder, the signature and the hash.

Description in the file
Direct3D 9 Runtime (Windows XP and Vista builds say Microsoft Direct3D)
What it is
The Direct3D 9 graphics library: it creates the graphics device for DirectX 9 games and programs and passes their drawing to the graphics driver. Since Windows Vista it also provides Direct3D 9Ex
Genuine folders
C:\Windows\System32\d3d9.dll and, on 64-bit Windows, C:\Windows\SysWOW64\d3d9.dll for 32-bit programs
Not genuine by location
Any d3d9.dll in a game folder, next to an .exe, in Downloads, Temp or AppData. Windows never puts it there
Size of the genuine file
Windows 11 24H2 and 25H2: 1,799,712 bytes (64-bit), 1,550,992 bytes (32-bit). Windows 10 22H2: 1,915,168 bytes (64-bit), 1,634,280 bytes (32-bit)
Newest indexed build
Windows 11 26H1: 10.0.28000.2525, delivered by KB5101649 on 14 July 2026
Known Microsoft builds
229 builds across 20 Windows releases in Winbindex
Listed in HijackLibs
Yes, as a sideloading target of C:\Windows\System32\magnify.exe (Magnifier), entry added on 27 February 2021
Is it a process
No. It is a library loaded into the games and programs that use Direct3D 9, so it never appears on its own in Task Manager

What d3d9.dll does, and why other copies of it turn up

d3d9.dll is the Direct3D 9 Runtime, part of Windows since the DirectX 9 era. A game built on Direct3D 9 loads it at start, asks it for a graphics device, and then sends every texture, shader and draw call through it to the graphics driver. Since Windows Vista the same file also provides Direct3D 9Ex, an extended version that works with the desktop compositor. New games use Direct3D 11 or 12 through other files, but Windows 10 and Windows 11 still include and update d3d9.dll so that older games and some desktop programs keep working.

The file is also one of the most common names for proxy DLLs. Because d3d9.dll is not one of the libraries Windows always takes from System32, a game looks in its own folder first. A tool author builds a library with the same name and the same exported functions, puts it next to the game's .exe, and the game loads it at start. Shader and post-processing injectors use this to add effects, graphics enhancers for older games use it to replace lighting, and translation layers such as DXVK ship a d3d9.dll that turns Direct3D 9 into Vulkan. Cheats and overlays use the same trick to draw on top of the game or read its memory.

Whatever the tool, the code runs with the same rights as the game and your user account: it can read and write files, open network connections and start other programs. A legitimate tool does only what its author describes. A repackaged copy, or one that came with a cracked game, can do anything else in the same moment, while still passing the graphics on so the game looks normal.

Windows' own programs can be misused in a similar way. The HijackLibs project lists d3d9.dll as a sideloading target of the Magnifier, magnify.exe: copied out of System32 into another folder together with a planted d3d9.dll, the trusted Microsoft program loads the planted file. So the question is never whether d3d9.dll is a virus, but which d3d9.dll you are looking at.

About .dll files. A .dll file is a library: it cannot run on its own and is loaded into a program's process. It does not appear in Task Manager under its own name; Process Explorer shows which process loaded it.

How a proxy d3d9.dll in a game folder loads before the Windows copy in System32 and forwards Direct3D 9 calls to it
The game takes d3d9.dll from its own folder first; the proxy runs its own code, then passes the graphics on.

How to tell a game folder d3d9.dll from Windows' copy

A DLL is not listed in Task Manager as a process, so use the folder, the file properties, PowerShell or Process Explorer.

  1. Where the file is. List every copy with the command below. C:\Windows\System32, C:\Windows\SysWOW64 and the WinSxS store are Windows' copies. A copy in a game folder is a tool that something installed. A copy anywhere else, or one in a folder that also holds a magnify.exe, needs a closer look.
    Get-ChildItem C:\ -Recurse -Filter d3d9.dll -ErrorAction SilentlyContinue | Select-Object FullName, Length, @{n='Description';e={$_.VersionInfo.FileDescription}}
  2. The Description field and the size. Right-click the file, Properties, Details. The genuine file says Direct3D 9 Runtime, with Microsoft Corporation as the company and a Windows version number such as 10.0.26100. Its size matches one of the Windows releases in the facts table, between about 1.4 and 2.2 MB. A proxy usually shows another description, another version and another size. A proxy can copy these fields, so this check only rules files out.
  3. The digital signature. Windows' copy is signed by Microsoft through a catalog rather than inside the file, so the Properties window may show no Digital Signatures tab. PowerShell reads both kinds. Valid with a Microsoft signer means genuine; NotSigned or another signer on a game folder copy means a third-party file.
    Get-AuthenticodeSignature 'C:\path\to\game\d3d9.dll' | Format-List Status, SignatureType, SignerCertificate
  4. What the game loads. Start the game, then open Process Explorer from Microsoft Sysinternals, choose Find > Find Handle or DLL, type d3d9.dll and press Search. The path column shows which copy each running program really loaded. A game folder path means the proxy is running inside the game; any path outside System32 and SysWOW64 inside magnify.exe means a sideloaded file.
  5. Compare the hash with Microsoft's builds. Use the checker on this page: it computes the SHA-256 in your browser and compares it with the known Microsoft builds. A game folder copy that matches is an unneeded Windows copy, often left by an old fix guide; one that does not match is a third-party file.
  6. Scan before you trust or delete. Run Microsoft Defender's full scan, and the offline scan if a detection keeps coming back. A detection on a game folder d3d9.dll is not proof either way, because injectors are flagged for how they work, so weigh it with where the mod came from.

A match to a Microsoft build proves the file is Microsoft's. A file that does not match is not automatically malicious: most game folder copies are graphics mods that do what their authors say. What decides is whether you chose to install that mod, from where, and whether the file is the one its author published.

Genuine d3d9.dll compared with a planted copy: folder, a copied magnify.exe, Description, size, Microsoft signature and hash
Folder, signature and hash tell Windows' d3d9.dll from a copy that only borrows its name.

Check your d3d9.dll

Choose the d3d9.dll you are unsure about. Its SHA-256 checksum is calculated in your browser and compared with the 264 Microsoft builds indexed from Windows releases and updates.

or drop the file here

The file stays on your computer. Nothing is uploaded: the checksum is computed locally.

Warning signs and what they mean

What you seeWhat it means
d3d9.dll in a game folder although you never installed a graphics mod, overlay or tool for that gameSomething else put it there: a repackaged or cracked game, a bundled installer, or malware that uses the game as a launcher. Treat it as not genuine and scan.
d3d9.dll together with a magnify.exe in a folder outside C:\Windows\System32The sideloading pattern HijackLibs describes. Windows never copies Magnifier into user folders. Treat that folder as malicious and scan.
d3d9.dll in Downloads, Temp, AppData or another folder with no game in itNo game will load it from there by accident. A copy outside a game folder and outside the Windows folders has no normal reason to exist.
The mod came from a repack, a crack, a file-sharing link or a stranger in a chat, not from its author's own pageProxy DLLs are easy to repackage with extra code. Download graphics tools and presets only from the author's own release page or a mod site with versioned uploads.
The file claims Microsoft Corporation and Direct3D 9 Runtime, but has no valid Microsoft signature and matches no known buildA file that pretends to be Windows' copy. Legitimate graphics tools do not need to hide; one that imitates Microsoft's details deserves a close look.
Accounts logged out, new sign-in alerts or password resets after installing a mod or trainerPossible theft of browser sessions or saved passwords. Remove the mod, scan, and change passwords from another device.
Microsoft Defender names d3d9.dll in System32 or SysWOW64Rare. Check the hash with the checker on this page and run the offline scan before anything else; repair the file with sfc /scannow if it does not match.

Programs that have been made to load a fake d3d9.dll

Each program below is genuine and signed, and security researchers have documented that it can be made to load a planted d3d9.dll. Usually the attacker copies the program into another folder and puts a fake d3d9.dll next to it: Windows looks in the program's own folder first. A d3d9.dll next to one of these programs, outside the folders below, is the copy to check.

Where the genuine d3d9.dll belongs: C:\Windows\System32C:\Windows\SysWOW64

The genuine d3d9.dll is signed by: Microsoft Windows, a Windows catalog signature (Properties shows no Digital Signatures tab; check it with Get-AuthenticodeSignature)

ProgramHow
C:\Windows\System32\magnify.exe
signed by Microsoft Windows
Side-loading

Source: the HijackLibs entry for d3d9.dll, 1 public report.

Everyday problems with d3d9.dll

My security software flagged d3d9.dll in a game folder

A detection on a shader injector or another graphics tool happens, because a proxy DLL that runs code inside another program behaves the way malware does. It is not automatically a false alarm either: malicious mod packages and cheats use the same file name.

Decide by origin. If you installed a known tool from its author's own release page and the file matches what was published there, the detection is about the technique. If you do not know where the file came from, leave it quarantined.

Removing the game folder copy never harms Windows: the game falls back to the genuine copy in System32 or SysWOW64 and only the mod stops loading.

I want to remove a graphics mod that uses d3d9.dll

Delete or rename d3d9.dll in the game folder, together with the files that came with it: usually an .ini or a preset file, a shaders or textures folder and sometimes a log file. The game's own verify option does not remove extra files, so do this by hand.

If the tool had an installer, uninstall it from Settings, Apps first. Then scan with Microsoft Defender.

An old fix guide told me to copy d3d9.dll into the game folder

That copy is a Windows file from somewhere else, often from Windows XP or Windows 7. Windows already loads its own copy, so the extra one adds nothing and stays out of date. Downloaded from a DLL site, it may not even be Microsoft's file.

Run the checker on this page on it. Whatever the result, you can remove it: the game uses the copy in System32 or SysWOW64 instead.

Two d3d9.dll files are in the Windows folders

That is normal on 64-bit Windows: System32 holds the 64-bit library and SysWOW64 the 32-bit one, which most DirectX 9 games use. Both are genuine Microsoft files with different sizes and hashes.

If one of them is damaged or replaced, repair it with Windows' own tools, run as administrator one after the other:

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

d3d9.dll versions by Windows release

The newest build indexed for each release, and the update that delivered it. 229 Microsoft builds in total are known.

Windows releaseFile versionDelivered bySize, 64-bit
Windows 11 26H110.0.28000.2525KB5101649, Jul 14, 20261,741,120 bytes
Windows 11 25H210.0.26100.9549KB5127648, Oct 13, 20261,799,712 bytes
Windows 11 24H210.0.26100.9549KB5127648, Oct 13, 20261,799,712 bytes
Windows 11 23H210.0.22621.5415KB5066793, Oct 14, 20251,736,944 bytes
Windows 11 22H210.0.22621.5415KB5066793, Oct 14, 20251,736,944 bytes
Windows 11 21H210.0.22000.2600KB5044280, Oct 8, 20241,728,608 bytes
Windows 10 22H210.0.19041.7802KB5126657, Oct 13, 20261,915,168 bytes
Windows 10 21H210.0.19041.7802KB5126657, Oct 13, 20261,915,168 bytes
Windows 10 21H110.0.19041.7802KB5126657, Oct 13, 20261,915,168 bytes
Windows 10 20H210.0.19041.7802KB5126657, Oct 13, 20261,915,168 bytes

Known versions of d3d9.dll

A public DLL catalogue lists 35 versions of d3d9.dll, from 4.9.0.901 to 10.0.19041.488, by Microsoft Corporation. Its copies are uploaded by users and not verified, so a checksum match identifies the version, while the digital signature tells you whether the file is genuine. Even a genuine file clears only the file, not the folder: attackers ship genuine libraries next to a program they abuse, so where the copy sits still decides whether it is safe.

Every version with its checksums, and how to fix d3d9.dll errors on uGetFix

Questions people ask

Is d3d9.dll a virus?

No, not the Windows copy. d3d9.dll is the Direct3D 9 Runtime, and the files in System32 and SysWOW64 are genuine Windows libraries. A d3d9.dll in a game folder is a different file with the same name, usually a graphics mod or a translation layer. Most are harmless tools, but cheats and repackaged mods can carry harmful code under this name, so check where it came from and compare its hash.

Why is there a d3d9.dll in my game folder?

Because a graphics tool put it there: a shader or post-processing injector, a graphics enhancer, a translation layer such as DXVK, an overlay or a cheat. Games load d3d9.dll from their own folder before the Windows copy, so tools use the name to get their code running inside the game. If you did not install anything like that, treat the file as suspicious and scan the PC.

Can I delete d3d9.dll?

Delete or rename a copy in a game folder whenever you like: the game falls back to Windows' own copy, and only the mod that needs it stops working. Do not delete the copies in System32 or SysWOW64. Every game and program built on Direct3D 9 needs them, and Windows treats them as protected system files.

What can a malicious d3d9.dll do?

Anything the game itself can do. The proxy runs inside the game with your user account's rights, so it can read and write your files, read browser data and saved passwords, open network connections and start other programs, while still passing the graphics to Windows so the game looks normal. That is why the origin of a graphics tool matters more than its name.

What does it mean that HijackLibs lists d3d9.dll?

HijackLibs is a public list of DLLs that Windows programs load from their own folder. For d3d9.dll it names the Magnifier, magnify.exe from System32. It does not mean the file is dangerous: it means a copy of Magnifier placed in another folder will load a d3d9.dll planted beside it, which attackers can use to run code under a trusted Microsoft program.

How do I check if my d3d9.dll is genuine?

Check three things. The folder: only System32, SysWOW64 and the WinSxS store hold Windows' copy. The signature: Get-AuthenticodeSignature in PowerShell shows Valid with a Microsoft signer for the genuine file. The hash: the checker on this page compares the SHA-256 with 229 known Microsoft builds. A game folder file that fails these checks is a third-party file, not Windows' copy.

Is a d3d9.dll from DXVK safe?

DXVK is an open-source project that implements Direct3D 8, 9, 10 and 11 on top of Vulkan, and its d3d9.dll is meant to sit next to a game's .exe. Downloaded from the project's own release page, it is a normal tool. The same file name from a repack, a video description link or a chat message can contain anything, so compare it with the official release.

Sources

Version data read on Oct 17, 2026.

Questions and experiences

Ask about this page: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

5,586 members already hereReading, writing, commenting and voting. 0 verified · 311 joined this year