Keyboard Filter sample and Removing keys from the queue

Hi all,
I have used the win2k ddk keyboard filter sample as a template to build a keyboard filter.
every thing is going ok if I want to modify the keys code.
My concern now is how can I add or remove to the keyboard packet that I recieved in the filter SeviceCallback functions ( I need to know how is the packet data I recieved from the callback allocated).

Thanks in advance

Hesham


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi
You can see example from
http://www.sysinternals.com/ntw2k/source/ctrl2cap.shtml
Maybe it help you
regard
Mark

Hesham Desouky wrote:

Hi all,I have used the win2k ddk keyboard filter sample as a template
to build a keyboard filter.every thing is going ok if I want to modify
the keys code.My concern now is how can I add or remove to the
keyboard packet that I recieved in the filter SeviceCallback functions
( I need to know how is the packet data I recieved from the callback
allocated). Thanks in advance Hesham —
You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thanks Mark,
but this sample not 100% wdm compatible.
The DDK Keyboard filter sample install the filter over the keyboard filter and start with the system startup as a driver not as a service.
This sample is working great but there is a small problem.

How can I remove or add new keys to the keys queue in the
service call back function?

thanks in advance

Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Sunday, January 13, 2002 10:37 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue

Hi
You can see example from
http://www.sysinternals.com/ntw2k/source/ctrl2cap.shtml
Maybe it help you
regard
Mark
Hesham Desouky wrote:

Hi all,I have used the win2k ddk keyboard filter sample as a template to build a keyboard filter.every thing is going ok if I want to modify the keys code.My concern now is how can I add or remove to the keyboard packet that I recieved in the filter SeviceCallback functions ( I need to know how is the packet data I recieved from the callback allocated). Thanks in advance Hesham —
You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Hesham
I think you can assign new Buffer for InputDataConsumed , place
packets KEYBOARD_INPUT_DATA in this buffer, change
InputDataStart,InputDataEnd
in function KbFilter_ServiceCallback and call ClassService using new
parameters.
(see also KeyboardClassServiceCallback in file kbdclass.c)
regards
Mark

Hesham Desouky wrote:

Thanks Mark,but this sample not 100% wdm compatible.The DDK Keyboard
filter sample install the filter over the keyboard filter and start
with the system startup as a driver not as a service.This sample is
working great but there is a small problem. How can I remove or add
new keys to the keys queue in theservice call back function? thanks in
advance Hesham

----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Sunday, January 13, 2002 10:37 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing
keys from the queue
Hi
You can see example from
http://www.sysinternals.com/ntw2k/source/ctrl2cap.shtml
Maybe it help you
regard
Mark

Hesham Desouky wrote:

> Hi all,I have used the win2k ddk keyboard filter sample as
> a template to build a keyboard filter.every thing is going
> ok if I want to modify the keys code.My concern now is how
> can I add or remove to the keyboard packet that I recieved
> in the filter SeviceCallback functions ( I need to know
> how is the packet data I recieved from the callback
> allocated). Thanks in advance Hesham —
> You are currently subscribed to ntdev as: xxxxx@arx.com
> To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@yahoo.com

To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

thanks mark,
I have found that the number of keyboard structures are alwyas one, then the easiest solution is just not call the parent service callback when dropping a key.

The question now is, if I want an application to interface into driver to enable and disable dropping beside some additional tasks, how could I add new device object into the same driver and how could I know which device I am dealing with in the pnp and dispatch calls to the driver object?

thanks for your help and support

Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Tuesday, January 15, 2002 10:57 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue

Hi Hesham
I think you can assign new Buffer for InputDataConsumed , place packets KEYBOARD_INPUT_DATA in this buffer, change InputDataStart,InputDataEnd
in function KbFilter_ServiceCallback and call ClassService using new parameters.
(see also KeyboardClassServiceCallback in file kbdclass.c)
regards
Mark
Hesham Desouky wrote:

Thanks Mark,but this sample not 100% wdm compatible.The DDK Keyboard filter sample install the filter over the keyboard filter and start with the system startup as a driver not as a service.This sample is working great but there is a small problem. How can I remove or add new keys to the keys queue in theservice call back function? thanks in advance Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Sunday, January 13, 2002 10:37 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue
Hi
You can see example from
http://www.sysinternals.com/ntw2k/source/ctrl2cap.shtml
Maybe it help you
regard
Mark
Hesham Desouky wrote:

Hi all,I have used the win2k ddk keyboard filter sample as a template to build a keyboard filter.every thing is going ok if I want to modify the keys code.My concern now is how can I add or remove to the keyboard packet that I recieved in the filter SeviceCallback functions ( I need to know how is the packet data I recieved from the callback allocated). Thanks in advance Hesham —
You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi
Hesham ,
I didn’t understood why you need add new device object.
Maybe you can define new IRP to same device object
best regards
Mark
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Hesham Desouky
Sent: Tuesday, January 15, 2002 12:55 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the
queue

thanks mark,
I have found that the number of keyboard structures are alwyas one, then
the easiest solution is just not call the parent service callback when
dropping a key.

The question now is, if I want an application to interface into driver to
enable and disable dropping beside some additional tasks, how could I add
new device object into the same driver and how could I know which device I
am dealing with in the pnp and dispatch calls to the driver object?

thanks for your help and support

Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Tuesday, January 15, 2002 10:57 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the
queue

Hi Hesham
I think you can assign new Buffer for InputDataConsumed , place
packets KEYBOARD_INPUT_DATA in this buffer, change
InputDataStart,InputDataEnd
in function KbFilter_ServiceCallback and call ClassService using new
parameters.
(see also KeyboardClassServiceCallback in file kbdclass.c)
regards
Mark
Hesham Desouky wrote:

Thanks Mark,but this sample not 100% wdm compatible.The DDK Keyboard
filter sample install the filter over the keyboard filter and start with the
system startup as a driver not as a service.This sample is working great but
there is a small problem. How can I remove or add new keys to the keys queue
in theservice call back function? thanks in advance Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Sunday, January 13, 2002 10:37 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from
the queue
Hi
You can see example from
http://www.sysinternals.com/ntw2k/source/ctrl2cap.shtml
Maybe it help you
regard
Mark
Hesham Desouky wrote:

Hi all,I have used the win2k ddk keyboard filter sample as a
template to build a keyboard filter.every thing is going ok if I want to
modify the keys code.My concern now is how can I add or remove to the
keyboard packet that I recieved in the filter SeviceCallback functions ( I
need to know how is the packet data I recieved from the callback allocated).
Thanks in advance Hesham —
You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I need to communciate with this driver to do some application specific operations
and as you know I cant open a handle to keyboard driver (access denied)
so I need to do it the hard way (adding new device object as microsoft said in the keyboard filter driver details)

thanks in advance

hesham
----- Original Message -----
From: Mark Snaider
To: NT Developers Interest List
Sent: Thursday, January 17, 2002 5:33 PM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue

Hi
Hesham ,
I didn’t understood why you need add new device object.
Maybe you can define new IRP to same device object
best regards
Mark
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Hesham Desouky
Sent: Tuesday, January 15, 2002 12:55 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue

thanks mark,
I have found that the number of keyboard structures are alwyas one, then the easiest solution is just not call the parent service callback when dropping a key.

The question now is, if I want an application to interface into driver to enable and disable dropping beside some additional tasks, how could I add new device object into the same driver and how could I know which device I am dealing with in the pnp and dispatch calls to the driver object?

thanks for your help and support

Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Tuesday, January 15, 2002 10:57 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue

Hi Hesham
I think you can assign new Buffer for InputDataConsumed , place packets KEYBOARD_INPUT_DATA in this buffer, change InputDataStart,InputDataEnd
in function KbFilter_ServiceCallback and call ClassService using new parameters.
(see also KeyboardClassServiceCallback in file kbdclass.c)
regards
Mark
Hesham Desouky wrote:

Thanks Mark,but this sample not 100% wdm compatible.The DDK Keyboard filter sample install the filter over the keyboard filter and start with the system startup as a driver not as a service.This sample is working great but there is a small problem. How can I remove or add new keys to the keys queue in theservice call back function? thanks in advance Hesham
----- Original Message -----
From: Mark Shnaider
To: NT Developers Interest List
Sent: Sunday, January 13, 2002 10:37 AM
Subject: [ntdev] Re: Keyboard Filter sample and Removing keys from the queue
Hi
You can see example from
http://www.sysinternals.com/ntw2k/source/ctrl2cap.shtml
Maybe it help you
regard
Mark
Hesham Desouky wrote:

Hi all,I have used the win2k ddk keyboard filter sample as a template to build a keyboard filter.every thing is going ok if I want to modify the keys code.My concern now is how can I add or remove to the keyboard packet that I recieved in the filter SeviceCallback functions ( I need to know how is the packet data I recieved from the callback allocated). Thanks in advance Hesham —
You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@arx.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com