usb keyboard and ctrl-break

hello, ntdev!

nice bug in hidparse.sys.

tested on windows xp sp2, windows server 2003 sp2 rc build 2845. of course bug
reproduced on all earler versions.

tested keyboards:
viewmate keyboard kc312-bks
microsoft ergonomic natural keyboard 4000 v1.0
dialog kp-102uh

if you press ctrl+break in followed sequence:
ctrl pressed, break pressed, break released, ctrl released - all wolrks
fine.

but if you press ctrl+break in followed sequence:
ctrl pressed, break pressed, ctrl released, break released - you got a
trouble. GetAsyncKeyState(VK_CANCEL) return 0x800x till you press
ctrl-break in “correct” way. programs like adobe photoshop stop working.
ps/2 keyboards dont’ have this problem.


wbr,
zg