Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  1. 1) put kbfiltr.sys, kbfiltr.inf, kbfiltr.cat under a temporary directory
  2. (both kbfiltr.inf and kbfiltr.cat are under msv_sspi\test\kbfiltr)
  3. Z:\nt\ds\security\protocols.new\msv_sspi\test\kbfiltr>dir \temp\kbfiltr.*
  4. Volume in drive Z is nt
  5. Volume Serial Number is 5464-2912
  6. Directory of Z:\temp
  7. 07/31/2001 09:50 AM 129 kbfiltr.cat
  8. 07/31/2001 09:50 AM 2,143 kbfiltr.inf
  9. 01/07/2002 02:40 PM 166,912 kbfiltr.pdb
  10. 01/07/2002 02:40 PM 39,680 kbfiltr.sys
  11. 2) use devmgmt.msc->"update driver" to install the driver for keyboard.
  12. 3) [optional] create registry key values for client credential logon id under
  13. ccs\lsa\msv1_0:
  14. value key name = ClientCredLogonIdHighPart; type = DWORD; value = 0;
  15. value key name = ClientCredLogonIdLowPart; type = DWORD; value = 0x3e4;
  16. 4) use msv_sspi\test\kbfiltr\test.cmd to trigger PNP events, what it does is:
  17. devcon.exe restart *PNP0303 // trigger PNPs only for keyboards
  18. or
  19. devcon.exe restart *PNP* // trigger PNPs for all devices
  20. you can use devcon.exe(an idw tool) to find out the keyboard hardware ID
  21. (*PNP0303 in this example) by "devcon hwids *PNP*" and look for
  22. "DDK Example Device that needs filtering", in my case, I will see the
  23. following.
  24. ACPI\PNP0303\4&4F9938A&0
  25. Name: DDK Example Device that needs filtering
  26. Hardware ID's:
  27. ACPI\PNP0303
  28. *PNP0303
  29. please note SspiMain is invoked very other 16 keyboard PNP events, so type
  30. "devcon.exe restart" a couple of times to watch for magic.