Windows C++: Is it possible to "bake in" Windows DLL dependencies when compiling a DLL?

时间:2018-03-25 20:55:38

标签: c++ windows dll

I have a C++ Windows program that compiles into the DLL. The DLL uses various imported functions (example below):

Hex code for DLL

In this case, my DLL uses InitializeSecurityDescriptor from ADVAPI32.dll, which is a Windows DLL.

My question is: Is it possible to "bake in" the code of ADVAPI32.dll into the compilation of the DLL? E.g. make it not appear as an import, and instead copy in its code? Or is this infeasible, because it in turn has lots of dependencies?

Thanks a lot for any help!

1 个答案:

答案 0 :(得分:0)

我认为答案正如评论所指出的那样,以及将多个DLL组合成1"的答案,这是不可行的,困难的,令人讨厌的。我很乐意接受这个答案。 :)