RES: PS/2 filter driver problem with USB keyboards

Thanks for your response Doron.

I´ve had this problem in W2K and WinXP. I never installed it in any other
OS.
I put the PnP framework in my driver.
Are you talking about INF file for PnP install ??
I guess I´ll have problems b/c it isn´t a high filter driver.
Exist some way to fix the driver for it works correctly when I attach a USB
keyboard together ?

Wilson

PS: Excuse my poor english.

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Doron Holan
Enviada em: sexta-feira, 14 de outubro de 2005 12:08
Para: Windows System Software Devs Interest List
Assunto: RE: [ntdev] PS/2 filter driver problem with USB keyboards

I8042prt (as pnp8042) and kbdclass are both DDK samples you can build and
use to debug the problem (but not ship ;)). I have some concerns in general
though b/c ctrl2caps was a non pnp driver w/a non pnp install…and you are
trying to attach and talk to pnp devices.

On what OS did your driver work on? On what OS did it stop working on?

D

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 4:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PS/2 filter driver problem with USB keyboards

About 2 years ago I wrote a PS/2 filter driver for custom keyboards, based
on ctrl2caps from Mark Russinovich.
In this fashion I don´t need an INF file for instalation. I use a small
utility to register the driver who sits above i8042prt.
My filter driver have worked fine.
Now I´m having problems when I attach a USB keyboard on computer.
Both, USB and PS/2 keyboards stop working when the driver is opened
(IRP_MJ_CREATE).
The application who controls the filter driver don´t work after that and I
can´t close it.

I don´t have deep knowledge in device drivers. This is the unique driver
than I wrote in all my life.

Please, any light to solve this problem ?

Thanks in advance.

Wilson


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/

You need to be a pnp enabled driver. I would recommend using the kbfiltr example as a starting point and go from there. If you want to filter all the keyboards on the machine, you don’t need an INF, you just need to update one registry value and install your service (and reboot).

I would also recommend ditching WDM and use WDF instead. The release of WDF is coming very very soon. The archives for this list contain information on how to sign up for the beta in the interim. With WDF you will not have to worry about pnp or power management, you can focus in on the filtering itself. The kbfiltr sample is ported to WDF and is included as a sample.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 9:38 AM
To: Windows System Software Devs Interest List
Subject: RES: [ntdev] PS/2 filter driver problem with USB keyboards

Thanks for your response Doron.

I?ve had this problem in W2K and WinXP. I never installed it in any other
OS.
I put the PnP framework in my driver.
Are you talking about INF file for PnP install ??
I guess I?ll have problems b/c it isn?t a high filter driver.
Exist some way to fix the driver for it works correctly when I attach a USB
keyboard together ?

Wilson

PS: Excuse my poor english.

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Doron Holan
Enviada em: sexta-feira, 14 de outubro de 2005 12:08
Para: Windows System Software Devs Interest List
Assunto: RE: [ntdev] PS/2 filter driver problem with USB keyboards

I8042prt (as pnp8042) and kbdclass are both DDK samples you can build and
use to debug the problem (but not ship ;)). I have some concerns in general
though b/c ctrl2caps was a non pnp driver w/a non pnp install…and you are
trying to attach and talk to pnp devices.

On what OS did your driver work on? On what OS did it stop working on?

D

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 4:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PS/2 filter driver problem with USB keyboards

About 2 years ago I wrote a PS/2 filter driver for custom keyboards, based
on ctrl2caps from Mark Russinovich.
In this fashion I don?t need an INF file for instalation. I use a small
utility to register the driver who sits above i8042prt.
My filter driver have worked fine.
Now I?m having problems when I attach a USB keyboard on computer.
Both, USB and PS/2 keyboards stop working when the driver is opened
(IRP_MJ_CREATE).
The application who controls the filter driver don?t work after that and I
can?t close it.

I don?t have deep knowledge in device drivers. This is the unique driver
than I wrote in all my life.

Please, any light to solve this problem ?

Thanks in advance.

Wilson


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Your recommendations was very useful.
Now I understand what is going wrong. In fact, I don´t want filter all
keyboards on the machine, only my custom keyboard.
My custom keyboard is 4x4 keys developed for ATM.
The USB keyboard is for maintenance purposes.
Anyway, I will follow your recommendations and make a better driver.

Thanks Doron.

Best regards.

Wilson

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Doron Holan
Enviada em: sexta-feira, 14 de outubro de 2005 14:12
Para: Windows System Software Devs Interest List
Assunto: RE: [ntdev] PS/2 filter driver problem with USB keyboards

You need to be a pnp enabled driver. I would recommend using the kbfiltr
example as a starting point and go from there. If you want to filter all
the keyboards on the machine, you don’t need an INF, you just need to update
one registry value and install your service (and reboot).

I would also recommend ditching WDM and use WDF instead. The release of WDF
is coming very very soon. The archives for this list contain information on
how to sign up for the beta in the interim. With WDF you will not have to
worry about pnp or power management, you can focus in on the filtering
itself. The kbfiltr sample is ported to WDF and is included as a sample.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 9:38 AM
To: Windows System Software Devs Interest List
Subject: RES: [ntdev] PS/2 filter driver problem with USB keyboards

Thanks for your response Doron.

I´ve had this problem in W2K and WinXP. I never installed it in any other
OS.
I put the PnP framework in my driver.
Are you talking about INF file for PnP install ??
I guess I´ll have problems b/c it isn´t a high filter driver.
Exist some way to fix the driver for it works correctly when I attach a USB
keyboard together ?

Wilson

PS: Excuse my poor english.

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Doron Holan
Enviada em: sexta-feira, 14 de outubro de 2005 12:08
Para: Windows System Software Devs Interest List
Assunto: RE: [ntdev] PS/2 filter driver problem with USB keyboards

I8042prt (as pnp8042) and kbdclass are both DDK samples you can build and
use to debug the problem (but not ship ;)). I have some concerns in general
though b/c ctrl2caps was a non pnp driver w/a non pnp install…and you are
trying to attach and talk to pnp devices.

On what OS did your driver work on? On what OS did it stop working on?

D

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 4:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PS/2 filter driver problem with USB keyboards

About 2 years ago I wrote a PS/2 filter driver for custom keyboards, based
on ctrl2caps from Mark Russinovich.
In this fashion I don´t need an INF file for instalation. I use a small
utility to register the driver who sits above i8042prt.
My filter driver have worked fine.
Now I´m having problems when I attach a USB keyboard on computer.
Both, USB and PS/2 keyboards stop working when the driver is opened
(IRP_MJ_CREATE).
The application who controls the filter driver don´t work after that and I
can´t close it.

I don´t have deep knowledge in device drivers. This is the unique driver
than I wrote in all my life.

Please, any light to solve this problem ?

Thanks in advance.

Wilson


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/

In this case, you want an INF install. Kbfiltr is still an OK driver to use, you just need to update it’s INF to match your device’s hardware ID. WDF is still a good choice for this type of filter.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 10:49 AM
To: Windows System Software Devs Interest List
Subject: RES: [ntdev] PS/2 filter driver problem with USB keyboards

Your recommendations was very useful.
Now I understand what is going wrong. In fact, I don?t want filter all
keyboards on the machine, only my custom keyboard.
My custom keyboard is 4x4 keys developed for ATM.
The USB keyboard is for maintenance purposes.
Anyway, I will follow your recommendations and make a better driver.

Thanks Doron.

Best regards.

Wilson

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Doron Holan
Enviada em: sexta-feira, 14 de outubro de 2005 14:12
Para: Windows System Software Devs Interest List
Assunto: RE: [ntdev] PS/2 filter driver problem with USB keyboards

You need to be a pnp enabled driver. I would recommend using the kbfiltr
example as a starting point and go from there. If you want to filter all
the keyboards on the machine, you don’t need an INF, you just need to update
one registry value and install your service (and reboot).

I would also recommend ditching WDM and use WDF instead. The release of WDF
is coming very very soon. The archives for this list contain information on
how to sign up for the beta in the interim. With WDF you will not have to
worry about pnp or power management, you can focus in on the filtering
itself. The kbfiltr sample is ported to WDF and is included as a sample.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 9:38 AM
To: Windows System Software Devs Interest List
Subject: RES: [ntdev] PS/2 filter driver problem with USB keyboards

Thanks for your response Doron.

I?ve had this problem in W2K and WinXP. I never installed it in any other
OS.
I put the PnP framework in my driver.
Are you talking about INF file for PnP install ??
I guess I?ll have problems b/c it isn?t a high filter driver.
Exist some way to fix the driver for it works correctly when I attach a USB
keyboard together ?

Wilson

PS: Excuse my poor english.

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Doron Holan
Enviada em: sexta-feira, 14 de outubro de 2005 12:08
Para: Windows System Software Devs Interest List
Assunto: RE: [ntdev] PS/2 filter driver problem with USB keyboards

I8042prt (as pnp8042) and kbdclass are both DDK samples you can build and
use to debug the problem (but not ship ;)). I have some concerns in general
though b/c ctrl2caps was a non pnp driver w/a non pnp install…and you are
trying to attach and talk to pnp devices.

On what OS did your driver work on? On what OS did it stop working on?

D

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wilson Bernardes
Sent: Friday, October 14, 2005 4:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PS/2 filter driver problem with USB keyboards

About 2 years ago I wrote a PS/2 filter driver for custom keyboards, based
on ctrl2caps from Mark Russinovich.
In this fashion I don?t need an INF file for instalation. I use a small
utility to register the driver who sits above i8042prt.
My filter driver have worked fine.
Now I?m having problems when I attach a USB keyboard on computer.
Both, USB and PS/2 keyboards stop working when the driver is opened
(IRP_MJ_CREATE).
The application who controls the filter driver don?t work after that and I
can?t close it.

I don?t have deep knowledge in device drivers. This is the unique driver
than I wrote in all my life.

Please, any light to solve this problem ?

Thanks in advance.

Wilson


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/132 - Release Date: 13/10/2005

Scanned by WinProxy
http://www.Ositis.com/


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com