Load Mirror driver

Hi All,
As i am new to device driver development i have few queries. I am trying to develop mirror driver. I also get sample available in DDK samples. once i have driver how can i install that driver?

so can anybody tell me that what are the different way to install that driver to system?

Ravi.

Have you read and understood all the messages about mirror drivers that have
appeared in the last few months? There have been a lot. If you aren’t
reading and reviewing microsoft.public.development.device.drivers,
microsoft.public.win32.programmer.kernel, ntdev, windbg, and
microsoft.public.windbg you are going to be at this a long time. You said
“DDK samples”, does that mean you are targeting Windows XP, Windows 2000,
and Server 2003, exclusively? If Vista or Server 2008 are in your scope of
work, then you need the WDK too.

wrote in message news:xxxxx@ntdev…
> Hi All,
> As i am new to device driver development i have few queries. I am
> trying to develop mirror driver. I also get sample available in DDK
> samples. once i have driver how can i install that driver?
>
> so can anybody tell me that what are the different way to install that
> driver to system?
>
>
> Ravi.
>

There’s a document called ‘mirror.html’ under the ‘disp’ folder of the
‘mirror’ sample in the most recent WDK (6001.18000), which as David
already said, you need to download. Read this document. Do what it says.

Good luck,

mm

David Craig wrote:

Have you read and understood all the messages about mirror drivers that have
appeared in the last few months? There have been a lot. If you aren’t
reading and reviewing microsoft.public.development.device.drivers,
microsoft.public.win32.programmer.kernel, ntdev, windbg, and
microsoft.public.windbg you are going to be at this a long time. You said
“DDK samples”, does that mean you are targeting Windows XP, Windows 2000,
and Server 2003, exclusively? If Vista or Server 2008 are in your scope of
work, then you need the WDK too.

wrote in message news:xxxxx@ntdev…
>> Hi All,
>> As i am new to device driver development i have few queries. I am
>> trying to develop mirror driver. I also get sample available in DDK
>> samples. once i have driver how can i install that driver?
>>
>> so can anybody tell me that what are the different way to install that
>> driver to system?
>>
>>
>> Ravi.
>>
>
>
>

Hi MM,
Thanks for suggestion. I read that document and i got the thing. but this document suggest the one way that install driver using .inf file.

i read somewhere that we can also load the driver as service. so can u tell me what is the best ti install driver?

Thanks,
Ravi.

If you mean “CreateService,” et. c., then, I don’t believe that this
will work. Although I’m not really familiar with either the video
driver architecture, or even this particular driver, just given it’s
function, it, minimally, must require some additional registry keys that
indicate to what physical to attach, et. c., and “CreateService” won’t
handle this. If you relax the constraints one level to mean "can you
install this driver by using “CreateService” and creating some other
registry keys, then the answer is definitely no, as there are at least
two files (sys & dll) that have to be installed, and “CreateService”
won’t handle this. You could do this yourself, but to do so is
tantamount to inviting disaster, because although it may appear like a
simple, straightforward task, is so very much not either of these
things, because you have to get all the version rules correct, and
potentially handle replacing any in use files, possibly among other issues.

So, that’s my answer, but here’s my advice. While installation can be
and usually is a tedious, non-intuitive, frustrating mess that seems
like it all should be unnecessary, you just do not ever want to roll
your own installation. It’s very hard not to screw up something,
installation problems absolutely suck to solve, and if you trahs or
replace the wrong file, there’s a chance you’ll be able to correct the
issue with the recovery console, but more than likely you’ll either have
to reinstall or Windows or just give up and do it anyway, which in the
case of Vista might mean an hour, just for the os. Also, there is
usually if not always a WDK sample whose INF/INX file you can copy and
modify easily to suit your purposes.

As your question was a general one, and a good one, in the interest of
completeness, the only exception to this that I can think of is for a
pure, software only, NT4 style driver that needs nothing but an entry
under “HKLM\System\CurrentControlSet\Services” and has nothing but some
subset of the “DisplayName, ErrorControl, Group, ImagePath, Start, Tag
and Type” keys that use documented values. This is actually a very
common case that can easily be addressed with a file copy, and an old
style INF or INI style REG file, but you have to know what you are
doing, not have any file version/in use issues either, it’s only
suitable for use during development / testing, and if you’re going to go
this route, you might as well just the cut the whole step out and use
something like the OSRLOADER for these types of drivers, as well as a
few others, I think.

Good luck,

mm

xxxxx@einfochips.com wrote:

Hi MM,
Thanks for suggestion. I read that document and i got the thing. but this document suggest the one way that install driver using .inf file.

i read somewhere that we can also load the driver as service. so can u tell me what is the best ti install driver?

Thanks,
Ravi.