我的问题已经解决了。
具体办法见zdp971418发的帖子:
Installing the KBDFILTER driver:
1. Copy the kbdfiltr.sys, kbdfiltr.ini and regini.exe
into the C:Winnt\system32\drivers subdirectory.
2. Copy Keytrap.dll and Keytrap.wdf into the InTouch directory
3. Update the registry entries using the REGINI utility and the
KBDFILTR.INI file.
Type : C:\Winnt\system32\drivers> regini kbdfiltr.ini
At this point all the software is installed and the system will need to be
rebooted for the changes to take effect.
再用KeyTrapSet函数即可!