Application can't start (error code 0xc0000142) and misses ext-ms-win-shell32-shellcom-l1-1-0.dll

FirefoxMetzger 1 Reputation point
2021-02-26T11:15:44.13+00:00

I compiled an application (Gazebo) in Visual Studio Community 2019. Compilation, Linking, and the resulting installation (it is a CMake project) worked fine. However, when I start the application, it immediately crashes with error code 0xc0000142.

Checking the dependencies with Dependencies I can see that the API set ext-ms-win-shell32-shellcom-l1-1-0.dll can not be found by the executable, which would explain above error. All other API sets (core + externals) seem to load fine.

This is where my analysis comes to a halt, because I can't find reliable information on this specific one. Which API does it belong to? Why is it not present on my system?

I have updated windows 10 to the latest version, ran SFC /scannow (no issues found) as well as DISM. None of these revealed any problems, nor fixed anything.

Windows Version: 20H2 Build 19042.844
VS Redistributable Version: 14.28.29334
Visual Studio Version: 16.8.6
Microsoft .NET Framework Version: 4.8.04084 (not sure if relevant)

Any pointers are highly appreciated.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,603 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 9,351 Reputation points Microsoft Vendor
    2021-03-01T03:24:14.057+00:00

    Hi,

    Ext-ms-win-shell32-shellcom-l1-1-0.dll file, developed by Microsoft, which is referred to essential system files of the Windows OS.

    The error 0xc0000142 commonly occurs when you try to launch an outdated or corrupted program.I sugest you could refer to the link: https://answers.microsoft.com/en-us/windows/forum/windows_10-performance-winpc/error-0xc0000142/3da27a75-178c-4de5-b43c-c538e6005540

    Dependency Walker always displays these dlls as missing. I sugest you could refer to the links:
    https://stackoverflow.com/questions/36240215/dependency-walker-missing-dlls
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/8f58e95f-60c5-44ac-85b5-2531914ac738/missing-all-apimswin-dlls-many-apps-will-not-start-including-vc2017redistx64-and?forum=WinServerPreview

    Best Regards,

    Jeanine


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.