Loading multiple instances of a driver

I wanted to know how to load the different instances of same driver. I want
to load the instances with different name. Just like atapi driver. Multiple
instances of atapi driver is loaded like dump_atapi and hiber_atapi. I just
wanted to do the same.


Regards
Rohit Gauba

Create several SC database keys referencing the same file.

Note: if the 2nd or later DriverEntry will fail, then the image will be
unmapped for the 1st instance too, causing a BSOD.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

“Rohit” wrote in message news:xxxxx@ntdev…
> I wanted to know how to load the different instances of same driver. I want
> to load the instances with different name. Just like atapi driver. Multiple
> instances of atapi driver is loaded like dump_atapi and hiber_atapi. I just
> wanted to do the same.
>
> –
> Regards
> Rohit Gauba
>

Maxim S. Shatskih wrote:

Create several SC database keys referencing the same file.

If they’re sharing the same image in memory, they’ll also share the same global variables.
I’m not sure that’s what the OP wants.

That stuff is specifically for dump/hibernation support and is not a general
purpose interface for folks who have decided that they need to load multiple
instances of their driver images for some odd reason. Consequently the
dump/hibernation support is massively undocumented. It does do exactly what
you want, I just sincerely hope that nobody decides to tell you how it does
this and that your attempts to reverse engineer these mechanisms fail. You
are wandering down the wrong path. Go back.

On Jan 3, 2008 6:10 AM, Rohit wrote:

> I wanted to know how to load the different instances of same driver. I
> want to load the instances with different name. Just like atapi driver.
> Multiple instances of atapi driver is loaded like dump_atapi and
> hiber_atapi. I just wanted to do the same.
>
> –
> Regards
> Rohit Gauba
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer


Mark Roddy

Rohit wrote:

I wanted to know how to load the different instances of same driver. I
want to load the instances with different name.

Why? Whether or not it is possible, what problem do you think this
would solve that wouldn’t also be solved by multiple devices supported
by a single driver?


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

What do you think multiple instances of the same driver image will buy you? What problem are you trying to solve by forcing multiple instances of the same image to be loaded? Perhaps you have a design which uses globals and does not work when you control more than one device object in the driver ?

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Rohit
Sent: Thursday, January 03, 2008 3:10 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Loading multiple instances of a driver

I wanted to know how to load the different instances of same driver. I want to load the instances with different name. Just like atapi driver. Multiple instances of atapi driver is loaded like dump_atapi and hiber_atapi. I just wanted to do the same.


Regards
Rohit Gauba

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer