LoadLibraryExW() fails, last error is ERROR_MOD_NOT_FOUND, but no missing dependencies?

后端 未结 3 2029
名媛妹妹
名媛妹妹 2020-12-20 20:28

A customer is using our dll which is creating a child process which uses an open source library, which ultimately fails because of a call to LoadLibraryExW(), the last error

3条回答
  •  清酒与你
    2020-12-20 21:06

    The best way is to use loader snaps. Basically you use gflags.exe (which is included with windbg) to enable loader snaps; then, run the process with the debugger attached. Loader snaps will enable the loader to print out dbg messages of the process and it will print the failures.

    gflags.exe -i yourcode.exe +sls
    windbg yourcode.exe
    

提交回复
热议问题