Loading upper filter driver through application

Hello all

I am in the phase of making a upper filter driver for a USB storage device,
I want my driver to be loaded by my a application, I tried addfilter.exe and
the filtject.dll for my work they didn’t help me (Probably I Would have been
used them wrong way).

I am new to device drivers so, please guide me with what are the ways that I
could use to load my driver through application. The system should not ask
for restart for the driver to take effect

Thanks in advance

Regards

Mahesh

Mahesh Siva wrote:

I am in the phase of making a upper filter driver for a USB storage
device, I want my driver to be loaded by my a application, I tried
addfilter.exe and the filtject.dll for my work they didn’t help me
(Probably I Would have been used them wrong way).

I am new to device drivers so, please guide me with what are the ways
that I could use to load my driver through application. The system
should not ask for restart for the driver to take effect

In general, it isn’t possible to add a filter in the middle of an
running driver stack. Filters get added when the device is coming up.
So, you could add your filter to the registry, then remove the device
and reinsert it, or use the same code as “devcon restart”.

However, like so many questions, I suspect you are asking how to
implement step 8 of your proposed solution instead of asking how to
solve your real problem. What are you actually trying to do?


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

>I am new to device drivers so, please guide me with what are the ways that I

could use to load my driver through application. The system should not ask
for restart for the driver to take effect

Do not rely on this. Installing the WDM filter requires stopping the devnode,
registering a filter, the starting the devnode back. If the stop phase fails -
due to, say, an FSD having open files on the device - then reboot is required,
and, for instance, Device Manager will explicitly suggest a reboot.

So, reboot requirement is necessary for some cases.

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