Search code examples
windowsapiexit-code

What does ExitCode -1073741502 mean?


I'm using the GetExitCodeProcess API to determine the exit reason for a process.

When my process fails, I get the error code -1073741502.

How can this value be converted into a value that I could google for?

Thank you.

Edit: Well, 1073741502 appears on Google, but not -1073741502. Why does my error code have a minus?


Solution

  • Converted to hexadecimal, the value is 0xC0000142.
    Windows NTSTATUS values show that your error code is STATUS_DLL_INIT_FAILED which is:

    {DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.