Introduction - If you have any usage issues, please Google them yourself
Can realize the compatibility of PS/2 keyboard and USB keyboard Logge source code Logger keyboard Hook keyboard driver Kbdclass distribution function, the drive below port driver. Using DeviceTree you can see the PS/2 keyboard port driver is i8042prt, USB keyboard port driver Kbdhid. Either the PS/2 keyboard USB keyboard, in port driver finished IRP will invoke the callback function, namely the KbdClass processing function of input data.