如何在内核中调用DLL [英] How to call DLL in kernel

查看:123
本文介绍了如何在内核中调用DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请让我知道从驱动程序动态调用内核模式DLL的调用.
我的查询:我想从不同的DLL调用相同的函数,因为如果这些DLL静态加载,我们将无法调用同一函数,但是如果我们可以动态加载,则可以调用该函数.首先加载特定的DLL,然后调用该函数,但是如何在内核中动态加载DLL?

BR
Satendra

Hi,

Please let me know the call to call Kernel mode DLLs from the drivers dynamically.
My Query: I want to call same function from different DLLS, since if these DLLs loaded statically we can''t call the same function, but if we can load dynamically then we can call the function. 1st load the particular DLL and then call the function, But how to load DLLs dynamically in kernel?

BR
Satendra

推荐答案

我得到了解决方案:

需要将DLL创建为导出驱动程序,将DLL的一个功能导出到驱动程序,并在该驱动程序的函数调用中返回函数指针,而该驱动程序需要从DLL调用.
我已经对此进行了实验,并且效果很好.

BR
Satendra
I got the solution:

Need to create the DLL as a export driver, export one function of the DLL to the driver and return the function pointers in that function call from the driver, which needs to call from the DLL.
I have experimented this and its working fine.

BR
Satendra


这篇关于如何在内核中调用DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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