what's the exact procedure to install the filter as lower or upper using devcon?

Hi,
I was using devcon CLI for installing my driver as UpperFilter. It has installed it as upperfilter based on INF file settings.
Devcon also has command to for adding the driver as Upper or Lower Filter.

I want to know, when to use this Add command? Is installing driver (using devcon) is not sufficient?
Using devcon, is it required to install the driver and then add as Upper or Lower filter?

What’s the correct method?

xxxxx@rediffmail.com wrote:

I was using devcon CLI for installing my driver as UpperFilter. It has installed it as upperfilter based on INF file settings.
Devcon also has command to for adding the driver as Upper or Lower Filter.

I want to know, when to use this Add command? Is installing driver (using devcon) is not sufficient?
Using devcon, is it required to install the driver and then add as Upper or Lower filter?

What’s the correct method?

It depends on what you’re doing. There are three steps to getting a
filter driver loaded.

  1. Copying the driver file into place
  2. Creating a service entry for the driver
  3. Adding the service name to the UpperFilters and/or LowerFilters value
    in some device or class registry key

Step 1 can be done using ordinary file copy commands. Step 2 is done
using the ServiceManager APIs, or the “sc” command.

For a class filter driver, the “devcon classfilter” command can do step
3. All it does is manipulate the UpperFilters and LowerFilters registry
values for that install class – the driver must already be installed.
For a device filter driver, devcon cannot help. You need to use
regedit, or an application to call the SetupDi APIs to gain access to
the device’s registry key.


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