Windows 10 error 0xc0000142 usually shows up when you are trying to launch a certain app.
It is very common and annoying, so you had better remove it as soon as possible.
In this guide onMiniTool Website, we will show you how to get rid of it step by step.

To fix this issue, you could execute the program in compatibility mode with administrative rights.
Right-choose the program and choosePropertiesin the drop-down menu.
Click onApply&OKto save the changes.

Go toUpdate & Security>Windows Update> hitCheck for updates.
In this condition, you might choose to update or reinstall the program.
PressWin+Xto launch the selection menu and chooseTask Manager.

In theProcessestab, right-punch the problematic app and selectEnd task.
Hit it, clickUninstalland follow the on-screen prompts to remove the app from your system.
Step 5. roll out the app again to see if error code 0xc0000142 is gone.

To do so:
Step 1.
Typemsconfigand hitEnterto launchSystem Configuration.
Under theServicestab, tickHide all Microsoft Servicesand hitDisable all.

Go to theStartuptab, and hit the blue fontOpen Task Manager.
Under theStartupsection ofTask Manager, disable all the enabled startup programs.
Click onOKand then reboot your rig.

Fix 5: Check the Registry
Step 2.
Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Windows
Step 3.
LocateLoadAppInit_DLLsand double-click to change its value to0.

HitOKto save the changes and then reboot your box.
Heres how to scan viruses or malware with Windows Defender.
Go toUpdate & Security>Windows Security>Virus & threat protection.
PressScan options>Full scan>Scan nowto start the scanning.
Heres how to do it:
Step 1.
PressWin+Sto evoke the search bar and typecmdto locateCommand Prompt.
Right-tap on it to chooseRun as administrator.
Typesfc /scannowand hitEnterto start the scanning process.
Once the process is done, cycle your box.