Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入表是否可以采用内存加载 #12

Open
woddle opened this issue Jul 28, 2022 · 1 comment
Open

导入表是否可以采用内存加载 #12

woddle opened this issue Jul 28, 2022 · 1 comment

Comments

@woddle
Copy link

woddle commented Jul 28, 2022

发现导入表的dll同样是采用LoadLibrary加载的,是否可以指定部分依赖的dll也采用内存加载?

@bb107
Copy link
Owner

bb107 commented Jul 29, 2022

你好,使用MemoryModulePP加载依赖是非常困难的,需要处理非常复杂的情况,你可以按照下面的方法简单处理这种问题。
假设有以下依赖链条需要从内存中加载:
lib1.dll -> lib2.dll -> lib3.dll
你可以先用LdrLoadDllMemoryExW加载lib3.dll(注意DllName和DllFullName参数要正确),再加载lib2.dll(同样地),最后加载lib1.dll

祝好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants