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.
- Do other, unrelated programs open? Try Notepad, Settings, and one app you installed yourself.
- 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.
- 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:
C:\Windows\System32> DISM.exe /Online /Cleanup-image /RestorehealthRun in the administrator Command Prompt. It can take several minutes. Wait until it reports the operation completed successfully.
C:\Windows\System32> sfc /scannowRun 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.