Hello all !
I need to use the keyboard PS/2 input to send and receive data packets to
a custom programable keyboard.
How I do to create an interface in kbdfiltr example DDK to my user
application for send and receive data packets ?
How I send and receive data to filter from my application ?
I did´t get success using ReadFile(), WriteFile() and DeviceIoControl().
IOCTL_INTERNAL_I8042_KEYBOARD_WRITE_BUFFER don´t work in user mode right ?
And to read data ??? Don´t have any IOCTLs to send from user mode.
Can I do this using ReadFile() and WriteFile() ?? How ?
Do I need to create new IOCTLs in kbdclass ?
Help ! I´m very confuse about communication between the user application
and filter driver.
I would appreciate very much your help. Thanks in advance.
Best Regards
Kbdfiltr has some comments in it describing how to do this. You need to create a 2ndary device object that has a hardcoded name and create a symbolic link to it (via IoCreateSymbolicLink) so that your user mode application can open it. Unfortunately, you cannot use a device interface for this, but since you are filtering only ps/2 keyboards, this doesn’t matter much b/c the device will be there by the time your app starts.
Once you have a 2ndary device object, you can send reads / writes / IOCTLs all you want. To differentiate between your 2ndary devobj and the one in the pnp stack, create a common header that is found in both device extensions. In the header, you have a type field which you can the route the request to the appropriate functionality.
d
-----Original Message-----
From: Wilson Bernardes [mailto:xxxxx@fourth.com.br]
Sent: Friday, June 21, 2002 11:39 AM
To: NT Developers Interest List
Subject: [ntdev] Communication between the user application and keyboard filter driver
Hello all !
I need to use the keyboard PS/2 input to send and receive data packets to
a custom programable keyboard.
How I do to create an interface in kbdfiltr example DDK to my user
application for send and receive data packets ?
How I send and receive data to filter from my application ?
I did?t get success using ReadFile(), WriteFile() and DeviceIoControl().
IOCTL_INTERNAL_I8042_KEYBOARD_WRITE_BUFFER don?t work in user mode right ?
And to read data ??? Don?t have any IOCTLs to send from user mode.
Can I do this using ReadFile() and WriteFile() ?? How ?
Do I need to create new IOCTLs in kbdclass ?
Help ! I?m very confuse about communication between the user application
and filter driver.
I would appreciate very much your help. Thanks in advance.
Best Regards
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%
Wilson Bernardes,???ã?
I think you can create a new control device for communicate with
user programs using ioctrl. The new control device is not a filter,
and it can have its name. yyou can exchange info with it easily,
then the new device will easily communicate with keyboard filter
device. You can refer to the sample drivers of Driver Studio
Suite2.6.
======= 2002-06-21 14:38:00 ???д???=======
Hello all !
I need to use the keyboard PS/2 input to send and receive data packets to
a custom programable keyboard.
How I do to create an interface in kbdfiltr example DDK to my user
application for send and receive data packets ?
How I send and receive data to filter from my application ?
I did?t get success using ReadFile(), WriteFile() and DeviceIoControl().
IOCTL_INTERNAL_I8042_KEYBOARD_WRITE_BUFFER don?t work in user mode right ?
And to read data ??? Don?t have any IOCTLs to send from user mode.
Can I do this using ReadFile() and WriteFile() ?? How ?
Do I need to create new IOCTLs in kbdclass ?
Help ! I?m very confuse about communication between the user application
and filter driver.
I would appreciate very much your help. Thanks in advance.
Best Regards
You are currently subscribed to ntdev as: xxxxx@sohu.com
To unsubscribe send a blank email to %%email.unsub%%
= = = = = = = = = = = = = = = = = = = =
???
???
???Luis Goliath
???xxxxx@sohu.com
???2002-06-26
There is now a kb article which describes how to do this,
HOWTO: Send IOCTLs to a Filter Driver (Q262305)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q262305
D
This posting is provided “AS IS” with no warranties, and confers no rights.
-----Original Message-----
From: Luis Goliath [mailto:xxxxx@sohu.com]
Sent: Tuesday, June 25, 2002 7:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Communication between the user application and keyboard filter driver
Wilson Bernardes,???ã?
I think you can create a new control device for communicate with
user programs using ioctrl. The new control device is not a filter,
and it can have its name. yyou can exchange info with it easily,
then the new device will easily communicate with keyboard filter
device. You can refer to the sample drivers of Driver Studio
Suite2.6.
======= 2002-06-21 14:38:00 ???д???=======
Hello all !
I need to use the keyboard PS/2 input to send and receive data packets to
a custom programable keyboard.
How I do to create an interface in kbdfiltr example DDK to my user
application for send and receive data packets ?
How I send and receive data to filter from my application ?
I did?t get success using ReadFile(), WriteFile() and DeviceIoControl().
IOCTL_INTERNAL_I8042_KEYBOARD_WRITE_BUFFER don?t work in user mode right ?
And to read data ??? Don?t have any IOCTLs to send from user mode.
Can I do this using ReadFile() and WriteFile() ?? How ?
Do I need to create new IOCTLs in kbdclass ?
Help ! I?m very confuse about communication between the user application
and filter driver.
I would appreciate very much your help. Thanks in advance.
Best Regards
You are currently subscribed to ntdev as: xxxxx@sohu.com
To unsubscribe send a blank email to %%email.unsub%%
= = = = = = = = = = = = = = = = = = = =
???
???
???Luis Goliath
???xxxxx@sohu.com
???2002-06-26
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%