TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Device Drivers

Toaster Filter driver

Microsoft Device Drivers

 
 
Thread Tools Display Modes
Unread 03-12-2007, 01:40 AM   #1
SAM
Guest
 
Posts: n/a
Toaster Filter driver

Hello guys,

I have a question. I have modified some of the KMDF toaster sample
filter driver from WDK6000 and tried to install this to one of usb
function driver to see if I can get the right IRPs from it. But
unfortunately I couldn't make it work when I install it with the INF
file coming with the sample code. How can I modify this INF file to
make it sit on top of one of the USB devices? or is there a simple way
to do it manually as use to be with the WDM??

I used to make a registry key "UpperFilters" in the designated device
and disable/enable the device manually, then it was working fine. How
can I do this with the KMDF? Should I always use the INF to install
it? even to the filter driver?

Thank you.

 
Unread 03-12-2007, 01:41 AM   #2
Eliyas Yakub [MSFT]
Guest
 
Posts: n/a
Re: Toaster Filter driver

Installing a filter driver for an existing device with INF is little tricky.
The INF file has to include sections from the INF of the actual function
driver using Needs and Includes directive. The filter driver inf provided
with KMDF sample doesn't demonstrate that. It installs the function and
filter together as one package.

I suggest you look at src\general\toaster\inf\i386\filter.inf or INFs for
keyboard and mouse filter sample under src\input.

With Vista, you wouldn't be able to modify the Enum registry manually. So
using INF is a good choice for the long run.

-Eliyas

 
Unread 03-12-2007, 01:47 AM   #3
Eliyas Yakub [MSFT]
Guest
 
Posts: n/a
Re: Toaster Filter driver

Installing a filter driver for an existing device with INF is little tricky.
The INF file has to include sections from the INF of the actual function
driver using Needs and Includes directive. The filter driver inf provided
with KMDF sample doesn't demonstrate that. It installs the function and
filter together as one package.

I suggest you look at src\general\toaster\inf\i386\filter.inf or INFs for
keyboard and mouse filter sample under src\input.

With Vista, you wouldn't be able to modify the Enum registry manually. So
using INF is a good choice for the long run.

-Eliyas

 
Unread 03-12-2007, 01:47 AM   #4
Eliyas Yakub [MSFT]
Guest
 
Posts: n/a
Re: Toaster Filter driver

Installing a filter driver for an existing device with INF is little tricky.
The INF file has to include sections from the INF of the actual function
driver using Needs and Includes directive. The filter driver inf provided
with KMDF sample doesn't demonstrate that. It installs the function and
filter together as one package.

I suggest you look at src\general\toaster\inf\i386\filter.inf or INFs for
keyboard and mouse filter sample under src\input.

With Vista, you wouldn't be able to modify the Enum registry manually. So
using INF is a good choice for the long run.

-Eliyas

 
Unread 03-12-2007, 02:03 AM   #5
SAM
Guest
 
Posts: n/a
Re: Toaster Filter driver

Thank you Eliyas,

I have looked the examples that you mentioned and correct my INF. Somehow I
can register my driver in the system no to the device and it is able to work
with my driver after I register it to the registry manually.

Then this question comes in my mind. How can I do this manually as I used to
do in WDM. In WDM we just make a registry key in the "Service" and register
the driver in the registry as an upper or lower then en/disable the device
then everything is OK. How can I do this in KMDF?

Thank you again.


"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:OE8zN%23vSHHA.3980@TK2MSFTNGP02.phx.gbl...
> Installing a filter driver for an existing device with INF is little
> tricky. The INF file has to include sections from the INF of the actual
> function driver using Needs and Includes directive. The filter driver inf
> provided with KMDF sample doesn't demonstrate that. It installs the
> function and filter together as one package.
>
> I suggest you look at src\general\toaster\inf\i386\filter.inf or INFs for
> keyboard and mouse filter sample under src\input.
>
> With Vista, you wouldn't be able to modify the Enum registry manually. So
> using INF is a good choice for the long run.
>
> -Eliyas



 
Unread 03-12-2007, 02:04 AM   #6
Eliyas Yakub [MSFT]
Guest
 
Posts: n/a
Re: Toaster Filter driver

You can do the same thing with KMDF driver if the framework runtime binaries
are already on the system. Since they are not going be there on any
downlevel systems (win2k thru Server2003), you have to use the
wdfcoinstaller to install the binaries. That's why I suggested you to use
INF file.

If you are using an installer application to instantiate the service and add
registery entries, then you can install the KMDF binaries programmatically
without the INF. Take a look at the exe file of src\kmdf\nonpnp sample in
the WDK. It shows how to load the wdfcoinstaller dll and invoke the entry
points to install/remove KMDF bits.

-Eliyas


 
Unread 03-12-2007, 02:05 AM   #7
David J. Craig
Guest
 
Posts: n/a
Re: Toaster Filter driver

It works very well, too. I found it interesting and useful, but I just
lucked out finding it.

"Eliyas Yakub [MSFT]" <eliyasy@online.discussion.microsoft.com> wrote in
message news:Oqw4mbXTHHA.4872@TK2MSFTNGP03.phx.gbl...
> You can do the same thing with KMDF driver if the framework runtime
> binaries are already on the system. Since they are not going be there on
> any downlevel systems (win2k thru Server2003), you have to use the
> wdfcoinstaller to install the binaries. That's why I suggested you to use
> INF file.
>
> If you are using an installer application to instantiate the service and
> add registery entries, then you can install the KMDF binaries
> programmatically without the INF. Take a look at the exe file of
> src\kmdf\nonpnp sample in the WDK. It shows how to load the wdfcoinstaller
> dll and invoke the entry points to install/remove KMDF bits.
>
> -Eliyas
>



 
Unread 03-12-2007, 02:08 AM   #8
SAM
Guest
 
Posts: n/a
Re: Toaster Filter driver

Thank you Eliyas,

I have looked the examples that you mentioned and correct my INF. Somehow I
can register my driver in the system no to the device and it is able to work
with my driver after I register it to the registry manually.

Then this question comes in my mind. How can I do this manually as I used to
do in WDM. In WDM we just make a registry key in the "Service" and register
the driver in the registry as an upper or lower then en/disable the device
then everything is OK. How can I do this in KMDF?

Thank you again.


"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:OE8zN%23vSHHA.3980@TK2MSFTNGP02.phx.gbl...
> Installing a filter driver for an existing device with INF is little
> tricky. The INF file has to include sections from the INF of the actual
> function driver using Needs and Includes directive. The filter driver inf
> provided with KMDF sample doesn't demonstrate that. It installs the
> function and filter together as one package.
>
> I suggest you look at src\general\toaster\inf\i386\filter.inf or INFs for
> keyboard and mouse filter sample under src\input.
>
> With Vista, you wouldn't be able to modify the Enum registry manually. So
> using INF is a good choice for the long run.
>
> -Eliyas



 
Unread 03-12-2007, 02:09 AM   #9
SAM
Guest
 
Posts: n/a
Re: Toaster Filter driver

Thank you Eliyas,

I have looked the examples that you mentioned and correct my INF. Somehow I
can register my driver in the system no to the device and it is able to work
with my driver after I register it to the registry manually.

Then this question comes in my mind. How can I do this manually as I used to
do in WDM. In WDM we just make a registry key in the "Service" and register
the driver in the registry as an upper or lower then en/disable the device
then everything is OK. How can I do this in KMDF?

Thank you again.


"Eliyas Yakub [MSFT]" <eliyasy@online.microsoft.com> wrote in message
news:OE8zN%23vSHHA.3980@TK2MSFTNGP02.phx.gbl...
> Installing a filter driver for an existing device with INF is little
> tricky. The INF file has to include sections from the INF of the actual
> function driver using Needs and Includes directive. The filter driver inf
> provided with KMDF sample doesn't demonstrate that. It installs the
> function and filter together as one package.
>
> I suggest you look at src\general\toaster\inf\i386\filter.inf or INFs for
> keyboard and mouse filter sample under src\input.
>
> With Vista, you wouldn't be able to modify the Enum registry manually. So
> using INF is a good choice for the long run.
>
> -Eliyas



 
Unread 03-12-2007, 02:10 AM   #10
Eliyas Yakub [MSFT]
Guest
 
Posts: n/a
Re: Toaster Filter driver

You can do the same thing with KMDF driver if the framework runtime binaries
are already on the system. Since they are not going be there on any
downlevel systems (win2k thru Server2003), you have to use the
wdfcoinstaller to install the binaries. That's why I suggested you to use
INF file.

If you are using an installer application to instantiate the service and add
registery entries, then you can install the KMDF binaries programmatically
without the INF. Take a look at the exe file of src\kmdf\nonpnp sample in
the WDK. It shows how to load the wdfcoinstaller dll and invoke the entry
points to install/remove KMDF bits.

-Eliyas


 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 05:19 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional