Hi. Lets suppose a display driver would load an existing
dll into its memory using EngLoadImage. Would that image
be limited to call EngXXX functions as is the case for a
display driver, or can the image call any kernel
function? What I'm really trying to do is access the
registry from my display driver but there doesn't seem to
be any supported function for this!! so I was thinking of
loading an image that uses ZwOpenKey and calling it from
my driver. Can this be done or is there a simpler way?
Thanks in advance.

EngLoadImage and function pool? by benjaminl

benjaminl
Thu Jul 31 16:38:43 CDT 2003

Yes, that can be done, dont know if there's a simpler way
though.

>-----Original Message-----
>Hi. Lets suppose a display driver would load an existing
>dll into its memory using EngLoadImage. Would that image
>be limited to call EngXXX functions as is the case for a
>display driver, or can the image call any kernel
>function? What I'm really trying to do is access the
>registry from my display driver but there doesn't seem to
>be any supported function for this!! so I was thinking of
>loading an image that uses ZwOpenKey and calling it from
>my driver. Can this be done or is there a simpler way?
>Thanks in advance.
>
>.
>

Re: EngLoadImage and function pool? by Tim

Tim
Sun Aug 03 01:31:18 CDT 2003

"alexandre" <ahtremblay@hotmail.com> wrote:
>
>Hi. Lets suppose a display driver would load an existing
>dll into its memory using EngLoadImage. Would that image
>be limited to call EngXXX functions as is the case for a
>display driver, or can the image call any kernel
>function? What I'm really trying to do is access the
>registry from my display driver but there doesn't seem to
>be any supported function for this!! so I was thinking of
>loading an image that uses ZwOpenKey and calling it from
>my driver. Can this be done or is there a simpler way?

One way to do that is to call into your miniport and let the miniport
access the registry.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: EngLoadImage and function pool? by Shawlee

Shawlee
Fri Aug 29 19:39:01 CDT 2003

You can't load a DLL linked to other DLL except win32k.sys in display
driver, the win32k will reject to do that.
for you question, you can use RTL functions to access registry

Shawlee

"alexandre" <ahtremblay@hotmail.com> wrote in message
news:04b601c357a7$60fd3df0$a301280a@phx.gbl...
> Hi. Lets suppose a display driver would load an existing
> dll into its memory using EngLoadImage. Would that image
> be limited to call EngXXX functions as is the case for a
> display driver, or can the image call any kernel
> function? What I'm really trying to do is access the
> registry from my display driver but there doesn't seem to
> be any supported function for this!! so I was thinking of
> loading an image that uses ZwOpenKey and calling it from
> my driver. Can this be done or is there a simpler way?
> Thanks in advance.
>