How to install the kbfiltr sample?

This is not a really “how to install the kbfiltr sample driver?” question! I know that it comes with a text teaching how to install it. The problem is that it uses a .INF file and i want to know how to install it without this .INF file. I tried to use the Driver Loader, it registers the driver but i can’t start its service because it gives me the following error: “The service could not be started because it is disabled or does not have associated devices enabled.” I tried to restart the computer and this message still appears!
Any sollution?

xxxxx@gmail.com wrote:

This is not a really “how to install the kbfiltr sample driver?” question! I know that it comes with a text teaching how to install it. The problem is that it uses a .INF file and i want to know how to install it without this .INF file.

To filter a device, all you need is a section in Services that describes
your device, which can be done with the OpenSCManager APIs, and an
UpperFilters line in the registry key of the device or class you want to
filter that points to your service. You can do that with
SetupDiGetDeviceRegistryProperty and SetupDiSetDeviceRegistryProperty.


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

Technically true, Tim, but IMNSHO you still really want to install even
filter drivers with an INF, especially on Vista, where there’s a whole
infrastructure for rolling back and re-applying drivers, as well as
doing server-side installs on newly plugged devices without admin
intervention. Etc.

And besides, there’s a logo class for keyboards, so if you ever want to
get your driver signed and installed seamlessly, you’re going to need an
INF anyway.

Tim Roberts wrote:

xxxxx@gmail.com wrote:
> This is not a really “how to install the kbfiltr sample driver?”
> question! I know that it comes with a text teaching how to install it.
> The problem is that it uses a .INF file and i want to know how to
> install it without this .INF file.

To filter a device, all you need is a section in Services that describes
your device, which can be done with the OpenSCManager APIs, and an
UpperFilters line in the registry key of the device or class you want to
filter that points to your service. You can do that with
SetupDiGetDeviceRegistryProperty and SetupDiSetDeviceRegistryProperty.


Ray
(If you want to reply to me off list, please remove “spamblock.” from my
email address)

You can do all of that, but it is still a pnp driver. As such, a tool like driverloader which tries to start / stop services on demand will not work with pnp drivers, only legacy NT4 style drivers

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Wednesday, June 04, 2008 4:39 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] How to install the kbfiltr sample?

xxxxx@gmail.com wrote:

This is not a really “how to install the kbfiltr sample driver?” question! I know that it comes with a text teaching how to install it. The problem is that it uses a .INF file and i want to know how to install it without this .INF file.

To filter a device, all you need is a section in Services that describes
your device, which can be done with the OpenSCManager APIs, and an
UpperFilters line in the registry key of the device or class you want to
filter that points to your service. You can do that with
SetupDiGetDeviceRegistryProperty and SetupDiSetDeviceRegistryProperty.


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


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

Depends on what driver is it.

If this is a kernel module tightly associated with hardware - then yes.

But if this a kernel module tightly associated with software package
(filters are often such) - then I see no need in employing the Driver Store,
the PnP’s install machine and the INFs. I prefer the software package
install/uninstall to be fully governed by Control Panel and not PnP.


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

“Ray Trent” wrote in message news:xxxxx@ntdev…
> Technically true, Tim, but IMNSHO you still really want to install even
> filter drivers with an INF, especially on Vista, where there’s a whole
> infrastructure for rolling back and re-applying drivers, as well as
> doing server-side installs on newly plugged devices without admin
> intervention. Etc.
>
> And besides, there’s a logo class for keyboards, so if you ever want to
> get your driver signed and installed seamlessly, you’re going to need an
> INF anyway.
>
> Tim Roberts wrote:
> > xxxxx@gmail.com wrote:
> >> This is not a really “how to install the kbfiltr sample driver?”
> >> question! I know that it comes with a text teaching how to install it.
> >> The problem is that it uses a .INF file and i want to know how to
> >> install it without this .INF file.
> >
> > To filter a device, all you need is a section in Services that describes
> > your device, which can be done with the OpenSCManager APIs, and an
> > UpperFilters line in the registry key of the device or class you want to
> > filter that points to your service. You can do that with
> > SetupDiGetDeviceRegistryProperty and SetupDiSetDeviceRegistryProperty.
> >
>
> –
> Ray
> (If you want to reply to me off list, please remove “spamblock.” from my
> email address)
>