Fill in DLL import table manually: IMAGE_IMPORT_DESCRIPTOR's Name field stores 0x0000FFFF
问题 My goal is to fill in Dll's import table manually in order to hook internal LoadLibrary calls (when you load library it may load another library inside its DllMain). Here is my code which fill in Import table recursively for each dll in dependecies hierarchy and it works fine except some dlls ( api-ms-win-crt-locale-l1-1-0.dll in this case). void PEUtility::fillImportTable(HMODULE loadedModule, FillImportFlag flag, std::function<void(HMODULE&)> callback) { std::stack<HMODULE> modules; modules