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.

122 lines
4.2 KiB

  1. Microsoft Windows NT 4.0 Smart Card DDK
  2. This file contains a brief description of the Smart Card DDK. For
  3. the latest information on Microsoft's smart card products, please
  4. visit http://www.microsoft.com/smartcard/.
  5. --------------------------------------------------------------------
  6. Documentation
  7. -------------
  8. Descriptions of all programming interfaces are in the help files
  9. that come with the Windows NT 4.0 DDK.
  10. Contact Information
  11. -------------------
  12. [email protected]
  13. The above email address is an external alias setup for the
  14. Smart Card DDK. There is information on how to subscribe at
  15. http://www.microsoft.com/sitebuilder/resource/mail.asp
  16. Keyboard Smart Card Reader
  17. --------------------------
  18. This driver consists of 2 components. The i8042 port driver for
  19. the keyboard, mouse and the smart card reader. All i/o processing
  20. is done in the driver ps2scrkb.
  21. The driver ps2card is an intermediate driver that is used
  22. to access the port driver. This driver contains no hardware specific
  23. information.
  24. The directory ps2reg contains a command line based installation
  25. procedure for the keyboard smart card reader. Before you can
  26. run this file, you must copy ps2scrkb and ps2card into
  27. your system32\drivers directory.
  28. Serial Smart Card Reader
  29. ------------------------
  30. The serial smart card reader makes use of the serial port driver.
  31. To install this driver, copy the driver scrcp8t.sys to your
  32. system32\drivers directory and from Explorer click on the reg-file
  33. to register the driver.
  34. IMPORTANT:
  35. This driver comes with a 'detection' feature. You must insert
  36. a smart card before you reboot your system. The driver
  37. tries to detect the reader by resetting the card and trying
  38. to get an ATR from the card. If you don't insert a card
  39. after registering the driver the driver won't work
  40. PCMCIA Smart Card Reader
  41. ------------------------
  42. To install the pcmcia smart card reader please copy the
  43. driver pscr.sys into your system32\drivers directory.
  44. In Explorer double-click on the reg-file to register the driver.
  45. You need to make sure that the pcmcia driver is running.
  46. Go to the control panel and click on devices. Select pcmcia
  47. from the list of devices. The status of this device should
  48. be 'Started'. If not click on the 'Startup' button and
  49. select 'Boot'.
  50. There is a known interrupt assignment problem on some systems
  51. that prevents the pcmcia driver from assigning proper
  52. interrupts to pcmcia cards. If the driver after reboot
  53. does not recognize card insertion and removal events
  54. properly you must change the interrupt assignment of the
  55. pcmcia driver. The problem occurs usually only on non-laptop
  56. machines.
  57. To change the interrupt assignment you have to supply
  58. a mask of allowed interrupts for the pcmcia controller.
  59. The example below ONLY allows interrupt 7h to be assigned
  60. to the pcmcia controller. (A '1' prevents the pcmcia driver
  61. from using an interrupt line)
  62. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Pcmcia]
  63. "InterruptMask"=dword:ffffff7f
  64. NOTE: If you have a second pcmcia card you need to assign
  65. an interrupt for this card, too.
  66. Installing Debug Components
  67. ---------------------------
  68. In order to get debugging messages you need to install the
  69. debug-components. By installing the kernel mode library
  70. smclib.sys into your system32\drivers directory you'll be
  71. enabled to see debug messages and debug assertions in
  72. a connected debugger like windbg or i386kd.
  73. To get debug messages of the smart card resource manager
  74. simply copy the file scardsvr.exe into your system32
  75. directory.
  76. Test Programs
  77. -------------
  78. The test program scdrvtst.exe can be used to test basic
  79. driver functionality. To start the test program simply type
  80. 'scdrvtst screaderN' where N is is number from 0-9.
  81. The program uses a data file (scdrvtst.dat) from where it reads
  82. the commands for the cards. The description of the data format
  83. is contained in the data file itself.
  84. NOTE: You can only run the test program when you've stopped the
  85. Smart Card Resource Manager. To stop the resource manager go to
  86. a command line and type 'net stop scardsvr'. If you don't have the
  87. Smart Card Base Components installed this is not necessary.