Tech Support > Microsoft Windows > Drivers > remap a kernel mode driver.
remap a kernel mode driver.
Posted by dhoom007@gmail.com on January 3rd, 2006


Hello All,

Is it possible to remap a whole kernel mode driver(.sys) or a part of
it (particularly read only portions) and make the system aware of it?

There should be a way the system finds address (image base) of a loaded
driver in a kernel space memory region. If I remap a driver then how
would I let the system know about it?

I would be grateful if somebody answers it ASAP.

Thanking you in advance.

Posted by David J. Craig on January 3rd, 2006


Is this question about a problem you have 'solved' and you think this
'remapping' of a driver is the answer? If so, please state the problem and
let one or more of us provide help. I can't think of any way you remap a
driver and have it work. The information the OS maintains is established
when the driver is loaded and with each succeeding initialization step. The
type of driver is not given which is another problem. Some are involved in
one or more stacks where each driver is connected to another.

<dhoom007@gmail.com> wrote in message
news:1136262900.111037.132630@g49g2000cwa.googlegr oups.com...


Posted by dhoom007 on January 3rd, 2006


Hi David,

Thanks for the reply.

basically i want to remap a video miniport driver to some other place
in kernel memory region.
Problem is still there and i want to know a way to map or remap it to
some other place.

There should be an address table kernel itself maintains that points to
video miniport driver image base address into the memory. If video
miniport driver is remapped then that address also has to be changed.
And I think the place where that address is stored must be read only
(locked). Can this address be changed anyhow? may be by remapping that
address table?

anticipating some replies...

thanks.

Posted by Doron Holan [MS] on January 3rd, 2006


and what about callback routines that the video miniport driver registers
with the video port driver? you don't know where those are stored so there
is no way to update them.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"dhoom007" <dhoom007@gmail.com> wrote in message
news:1136283746.084872.256860@g44g2000cwa.googlegr oups.com...


Posted by Ray Trent on January 3rd, 2006


dhoom007 wrote:
You still haven't answered the question: Why?

What is it you hope to accomplish by doing this remapping? There's
almost certainly a better way to solve whatever problem you're trying to
solve.

And BTW, there are dozens of reasons why what you're asking is
essentially impossible, or at least wildly unsafe and impractical.
--
Ray