filter driver unloads automatically on win2k

Hi,

I just tried to load my filter driver (PnP driver seats over volsnap driver)
at runtime using osrloader (just experimenting). It worked fine (load part)
on win2k8 and win2k3. On Win2k, driver unloads immediately after load. Any
reason why this happens and how to prevent driver from unloading on win2k.

Thanks,
Sunil

Does W2K require some add up to support VSS?

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sunil Patil
Sent: Sunday, December 12, 2010 11:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] filter driver unloads automatically on win2k

Hi,

I just tried to load my filter driver (PnP driver seats over volsnap driver)
at runtime using osrloader (just experimenting). It worked fine (load part)
on win2k8 and win2k3. On Win2k, driver unloads immediately after load. Any
reason why this happens and how to prevent driver from unloading on win2k.

Thanks,
Sunil
— 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

>I just tried to load my filter driver (PnP driver seats over volsnap driver) at runtime using osrloader

Even if you will load the binary, you will not be able to properly attach it to the devnode stack.

The only solution is to restart the devnode. And yes, for a boot disk, this requires a reboot.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Hi Maxim,

With this kind of run-time loading I am able to filter newly created volumes
which is fine for me. Though this works on win2k3, I want to do similar
thing on win2k and I am stuck at this issue where driver unloads immediately
after load. Anyway to get around this?

Am I missing something here.

Thanks,
Sunil

On Mon, Dec 13, 2010 at 6:21 PM, Maxim S. Shatskih
wrote:

> >I just tried to load my filter driver (PnP driver seats over volsnap
> driver) at runtime using osrloader
>
> Even if you will load the binary, you will not be able to properly attach
> it to the devnode stack.
>
> The only solution is to restart the devnode. And yes, for a boot disk, this
> requires a reboot.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> 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
>

No need to load the driver - this will be done automatically.

Just register it in Upper/LowerFilters.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Sunil Patil” wrote in message news:xxxxx@ntdev…
Hi Maxim,

With this kind of run-time loading I am able to filter newly created volumes which is fine for me. Though this works on win2k3, I want to do similar thing on win2k and I am stuck at this issue where driver unloads immediately after load. Anyway to get around this?

Am I missing something here.

Thanks,
Sunil

On Mon, Dec 13, 2010 at 6:21 PM, Maxim S. Shatskih wrote:

>I just tried to load my filter driver (PnP driver seats over volsnap driver) at runtime using osrloader

Even if you will load the binary, you will not be able to properly attach it to the devnode stack.

The only solution is to restart the devnode. And yes, for a boot disk, this requires a reboot.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com



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

Our requirement is “load the driver at run-time and filter only newly
created volumes”.

On Wed, Dec 15, 2010 at 12:54 AM, Maxim S. Shatskih
wrote:

> No need to load the driver - this will be done automatically.
>
> Just register it in Upper/LowerFilters.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> “Sunil Patil” wrote in message news:xxxxx@ntdev…
> Hi Maxim,
>
> With this kind of run-time loading I am able to filter newly created
> volumes which is fine for me. Though this works on win2k3, I want to do
> similar thing on win2k and I am stuck at this issue where driver unloads
> immediately after load. Anyway to get around this?
>
> Am I missing something here.
>
> Thanks,
> Sunil
>
>
> On Mon, Dec 13, 2010 at 6:21 PM, Maxim S. Shatskih
> wrote:
>
> >I just tried to load my filter driver (PnP driver seats over volsnap
> driver) at runtime using osrloader
>
>
> Even if you will load the binary, you will not be able to properly attach
> it to the devnode stack.
>
> The only solution is to restart the devnode. And yes, for a boot disk, this
> requires a reboot.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
>
> 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
>
> —
> 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
>

>Our requirement is “load the driver at run-time and filter only newly created volumes”.

Such a requirement is not supported by Windows.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com