installing a filter driver programmatically

Hi

I’ve been working with the SetupDiXxx registry API, trying to write an app
to install a filter driver for a device class, in this case the floppy disk
drive class. After calling SetupDiGetClassDevs, is there a routine similar
to SetupDiSetDeviceRegistryProperty that can be applied to a device class,
rather than a device instance? There doesn’t seem to be a way of doing this
without using inf files or hacking the registry, or am I missing something?
I’ve looked at the Addfilter sample in the DDK, but this only applies for
device instances and sheds no light on how to go about it for device
classes.

Many thanks for any assistance.

Duncan


Duncan Sellars - Systems Programmer
mail: xxxxx@reflex-magnetics.com
“We want a few mad people now. See where the sane ones have landed us!” -
George B. Shaw

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

You cannot add a class filter using SetupDi or INF file (unless you are
creating the class for the first time). You have to use the registry APIs
and modify the UpperFilters or LowerFilters registry values. Look at the
http://www.sysinternals.com/ctrl2cap.htm sample. The install program adds a
Upper class filter to keyboard class.

Good Luck,
Eliyas

-----Original Message-----
From: Duncan Sellars [mailto:xxxxx@reflex-magnetics.com]
Sent: Wednesday, June 07, 2000 7:50 AM
To: NT Developers Interest List
Subject: [ntdev] installing a filter driver programmatically

Hi

I’ve been working with the SetupDiXxx registry API, trying to write an app
to install a filter driver for a device class, in this case the floppy disk
drive class. After calling SetupDiGetClassDevs, is there a routine similar
to SetupDiSetDeviceRegistryProperty that can be applied to a device class,
rather than a device instance? There doesn’t seem to be a way of doing this
without using inf files or hacking the registry, or am I missing something?
I’ve looked at the Addfilter sample in the DDK, but this only applies for
device instances and sheds no light on how to go about it for device
classes.

Many thanks for any assistance.

Duncan


Duncan Sellars - Systems Programmer
mail: xxxxx@reflex-magnetics.com
“We want a few mad people now. See where the sane ones have landed us!” -
George B. Shaw

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)