等效于Windows的LD_PRELOAD来预加载共享库 [英] LD_PRELOAD equivalent for Windows to preload shared libraries

查看:449
本文介绍了等效于Windows的LD_PRELOAD来预加载共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试完全执行LD_PRELOAD的操作,即将Windows上的共享库或DLL文件预加载到给定的程序中,以覆盖某些功能.

I'm trying to do exactly what LD_PRELOAD does, i.e. preload a shared library or DLL files on Windows to a given program to override certain functions.

Windows是否有等效的LD_PRELOAD?

Is there a LD_PRELOAD equivalent for Windows?

我没有任何特定的功能.我只是知道这在Linux上是可能的,而且我很好奇如何在Windows上完成本机DLL的重载.

I don't have any specific functionalities in mind. I just know that this is possible on Linux, and I'm curious about how overloading a native DLL can be done on Windows.

推荐答案

AppInit_DLLs.

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_DLL):

You may also want to look into "DLL Injection". Four approaches (including AppInint_DLLs) are described here:

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

这篇关于等效于Windows的LD_PRELOAD来预加载共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆