Yes, a hook does work under NT as well.
....Need some help ... would love to see Brazil? :}
Quote:> Raymond et al,
Perhaps I did not explain clearly what I intended to do...
I am developing a keyboard driver which will be part of a Wosa/XFS
terminal. This keyboard has a magnetic card reader attached that sends
data as a stream of keystrokes (only the make-codes are actually sent).
The keyboard accepts two additional commands (0xA0 - enable reader and
0xA1 - disable reader) that the driver must send to control the reader.
Once an Enable command is issued the keyboard/reader is ready to decode
tracks 2 & 3. If you connect one of this devices on your PC and enables
it, passing the card is just the same as typing your card's content,
plus additional sentinel characters.
My "mission" is basically to create a driver which conforms to Wosa/XFS
service provider interface that intercepts keyboard data, identify
sentinels and decide which bytes are keystrokes and which are card data.
I suppose I do not need to intercept keystrokes when tasks such as a
console window get the focus (and also any application other than the
financial application which is the "client" of the card reader
service). If this is correct the "Hook" may be the solution of choice.
Does this hook work on NT also? This would cut half of my work!
Well, maybe I have clarified things now... thanks for your (valuable)
S?o Paulo - BRAZIL