Errors

Error 0xc0000022? Find whether it's the app, your account, or Windows

Short answerError 0xc0000022 means Windows denied access as the program started, so the program never opened. The code does not say which file was refused. Where the failure reaches decides the fix:
  • One program fails, in every account — its own files or the Visual C++ package it needs. Repair the program, then check that package.
  • It works in another Windows account — something tied to your account or startup set. Test with a clean boot.
  • Many unrelated programs fail — damaged Windows files. Run DISM, then SFC.
Don't download DLL files or take ownership of system folders until you know which case you have.

You open a game or app and get a small box instead: The application was unable to start correctly (0xc0000022). Click OK to close the application. Nothing opens, and reinstalling may not change it.

The code says access was denied at launch. It does not name the file that was refused. Three quick tests show which fixes apply to your PC, and the first two change nothing.

Do it by hand below, or let Noah read this PC's event logs and installed software first (more at the end).

What 0xc0000022 means

Microsoft names code 0xC0000022 STATUS_ACCESS_DENIED. Its definition: a process asked to access an object and was not granted those access rights.

At launch, that means Windows or a file the program needs refused access, so the program closed before it opened. A DLL (dynamic link library) is a shared code file many programs load as they start.

The code does not name the file, and neither does the message. It is also a different fault from 0xc0000142, where a DLL loaded but failed its own setup step.

First, find out how far it reaches

Three questions narrow it down before you change anything.

  1. Do other, unrelated programs open? Try Notepad, Settings, and one app you installed yourself.
  2. Does the failing program open in a different Windows account? If you have no second account, add one in Settings → Accounts and try the program there.
  3. Do Command Prompt and PowerShell open? If they fail with the same code, skip to the last section.

One program failing everywhere points at that program. Working in another account points at your account. Many programs failing points at Windows itself.

NoahNoah searches the Application and System logs for entries that mention the program, and lists the installed software and versions. An empty result does not prove nothing failed, because not every failure is written to these logs. Noah cannot tell which file refused access from the code, because the code does not carry that. Run this check on your PC →

Only one program fails

Other programs open. This one fails in every account, often after an interrupted install or update.

When only one program is refused, suspect its own files first. A damaged install can leave a file the program cannot read at launch. Many games also need a Visual C++ Redistributable — Microsoft's shared runtime package that programs built with Visual Studio load as they start.

Fixrepair the program in Settings → Apps → Installed apps, using its Modify or Repair option where offered. If there is none, uninstall it and reinstall it from the maker's site. Then ask the maker which Visual C++ version the program needs, and install that package from Microsoft. Leave the other versions in place.

It works in another account

The program opens in a fresh account but fails in yours. The fault follows your sign-in, not the install.

Something that loads with your account is in the way — a startup app, a service, or an overlay tool. An overlay is a tool such as Discord or a recorder that draws on top of a game. A clean boot starts Windows with non-Microsoft services and startup apps off, so you can test without removing anything.

Fixfollow Microsoft's clean-boot steps: in System Configuration, hide Microsoft services, disable the rest, and disable startup apps in Task Manager. Restart and try the program. If it opens, restore services and startup apps in halves until the failure returns. The last group restored holds the cause. Return to normal startup when you finish.

NoahNoah lists the startup programs and installed software on the PC, so the halves you restore are named rather than guessed. Noah cannot change your account permissions, and it has no built-in way to trace which file a program tried to open. Run this check on your PC →

Many programs fail

Unrelated programs fail with the same code. Command Prompt or PowerShell may fail too.

When the refusal is system-wide, repair Windows' own files. DISM supplies good copies of system files, and SFC (System File Checker) uses them to replace damaged ones. Microsoft says to install the latest Windows updates and restart first, then run DISM before SFC.

Fixtype cmd in the Search box, right-click Command Prompt, and choose Run as administrator. Then run these one at a time:

Administrator: Command Prompt
C:\Windows\System32> DISM.exe /Online /Cleanup-image /Restorehealth

Run in the administrator Command Prompt. It can take several minutes. Wait until it reports the operation completed successfully.

Administrator: Command Prompt
C:\Windows\System32> sfc /scannow

Run after DISM finishes. Don't close the window until verification reaches 100%. Then restart and test again.

NoahNoah has no built-in DISM or SFC repair. It can read the Application and System logs again afterwards, so a repeat 0xc0000022 after the repair is visible instead of guessed.

What to avoid

  • Downloading a DLL from a DLL site. Those copies come from unknown sources, and this code is not a missing file. Repair the program or install Microsoft's package instead.
  • Taking ownership of system folders. Changing who owns Windows folders can break updates and other programs. The scope tests above find the cause without it.
  • Turning off your antivirus for good. If a security tool is the suspect, the clean-boot test shows it. Re-enable protection when the test ends.
Try Noah free

Back in the game, not the error box.

Just tell Noah what's wrong:

My app won't start and shows error 0xc0000022.
Check my PC freeSigned Windows .msiRead-only firstOnly with your OKFirst fix free

Already have Noah? Open it on this problem →

Frequently asked questions

What does error 0xc0000022 mean?

Microsoft names 0xC0000022 STATUS_ACCESS_DENIED: a process asked to access an object and was not granted those rights. At launch, Windows or a file the program needs refused access, so the program closed before it opened. The code does not name the file.

How do I fix error 0xc0000022?

Test first: one program or many, and whether it opens in another Windows account. Repair the one program and check its Visual C++ package, clean-boot test when the fault follows your account, and run DISM then SFC when many programs fail.

Is 0xc0000022 a missing DLL?

No. The file was found but access to it was denied. A DLL that is not there gives a different code, 0xc0000135. Downloading DLL files from DLL sites is not the fix for either code.

Why does 0xc0000022 hit games at launch?

Games load launchers, anti-cheat components (software that checks for cheating tools), overlays, and Visual C++ runtimes as they start. An access refusal against any one of them stops the launch with this code. The scope tests show whether the game, your account, or Windows owns the refusal.

Should I take ownership of the game folder for 0xc0000022?

Not first. Repairing the game, checking its Visual C++ package, and the clean-boot test answer most cases. Broad ownership changes on system folders can break updates and other programs.

Commands in this guide are standard, read-only Windows diagnostics unless noted; anything that changes your system is called out. When in doubt, create a Windows System Restore point first.