我试图做LD_PRELOAD究竟是干什么的,即预装Windows上的共享库或DLL文件,以给定的程序重写某些功能。

有没有LD_PRELOAD等同于Windows?

我没有考虑任何特定的功能。我只知道这是可能在Linux上,和我很好奇如何重载一个本地DLL可以在Windows上进行。

有帮助吗?

解决方案

AppInit_DLLs。

http://support.microsoft.com/kb/197571

但是,也参见:

<强> AppInit_DLLs应改名Deadlock_Or_Crash_Randomly_DLLs

https://blogs.msdn.microsoft.com / oldnewthing / 20071213-00 / p = 24183 /

您可能还需要寻找到“DLL注入”。四种方法(包括AppInint_DLLs)描述如下:

http://en.wikipedia.org/wiki/DLL_Injection

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top