I have a process that calls CreateProcess . It appears that CreateProcess returns a nonzero success metric. However, the HANDLE for the process is then immediately installed, indicating that the process has exited. When I call GetExitCodeProcess , STATUS_DLL_NOT_FOUND returned.
I understand that the dll is missing. I even know exactly which one. However, I do not understand how to understand this programmatically.
I noticed that Windows will present a dialog saying that the process did not start because it could not find the specified DLL (screenshot: http://www.mediafire.com/view/?kd9ddq0e2dlvlb9 ). In the dialog box, Windows indicates which DLL is missing. However, I find no way to get this information myself.
If the process does not start and returns STATUS_DLL_NOT_FOUND , how do I programmatically get the name of the library with which the target process was associated that could not be found? Thus, I can automatically write in the error message that the DLL seems to be missing or damaged in this installation.
source share