Call DLL functions from driver?

Is there a general guideline on how to call DLL’s functions (could be user mode or kernel mode or application’s dll) from driver/kernel mode?

Thanks,

J

xxxxx@gmail.com wrote:

Is there a general guideline on how to call DLL’s functions (could be user mode or kernel mode or application’s dll) from driver/kernel mode?

Well, yes.

You cannot call user-mode DLLs from kernel mode. That’s just a fact,
and I would have hoped it was obvious.

Linking to a kernel DLL from a kernel module is exactly like linking to
a user-mode DLL from user-mode. You make an export library, and you
link to that export library. Here’s an article written by one of the
members of this list that describes the process:

http://www.wd-3.com/archive/KernelDlls.htm


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.