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.

306 lines
7.4 KiB

  1. Microsoft Win32 Smart Card SDK Components
  2. ---------
  3. Contents:
  4. ---------
  5. 1. Introduction
  6. 2. Updates
  7. 3. Development Tools
  8. 4. Components
  9. 5. Installation
  10. 6. C++ Projects
  11. 7. Java Project
  12. 8. VB Project
  13. 9. Building .IDL files
  14. ---------------
  15. 1. Introduction
  16. ---------------
  17. Welcome to the Microsoft Win32 Smart Card SDK. This release provides
  18. the necessary files and information to build retail and debug
  19. in-process server dynamic link libraries (DLLs) and smart card aware
  20. applications for Windows NT version 4.0 or greater, Windows 95 or greater,
  21. on x86 platforms.
  22. ----------
  23. 2. Updates
  24. ----------
  25. 1) Changes/Updates to SDK samples.
  26. --------------------
  27. 3. Development Tools
  28. --------------------
  29. The following tools are required to build the smart card components.
  30. 1. Microsoft Visual C++ version 5.0 or higher (see Note below)
  31. 2. Microsoft Win32 Software Development Kit (SDK)
  32. v4.0 or greater for Windows NT 4.0 or greater, and Windows 95 or
  33. greater.
  34. 3. Microsoft Visual J++ version 1.0 or later
  35. 4. ATL 2.0 or later.
  36. Most of the utilities, headers, libraries, documentation, and sample
  37. code in the Win32 Smart Card SDK are useful when building DLLs and
  38. smart card aware applications for Windows NT version 4.0 or greater and
  39. Windows 95 or greater.
  40. There is no compiler, linker, lib utility, or make utility provided
  41. with this SDK supplement.
  42. ---------------------------
  43. 4. Smart Card SDK Components
  44. ---------------------------
  45. The following components are included in this version of the Win32
  46. Smart Card SDK.
  47. \%MSTOOLS%\samples\winbase\scard
  48. - Readme.txt
  49. \%MSTOOLS%\include
  50. - scarderr.h
  51. - winscard.h
  52. - winsmcrd.h
  53. - sspserr.h
  54. - sspguid.h
  55. - sspsidl.h
  56. - wrpguid.h
  57. - scarddat.h
  58. - scarddat.idl
  59. - scardmgr.h
  60. - scardmgr.idl
  61. - scardsrv.h
  62. - scardsrv.idl
  63. - sspsidl.idl
  64. \%MSTOOLS%\specs
  65. - calaisdv.doc
  66. - sccmndlg.doc
  67. - scjava.doc
  68. - ssparch.doc
  69. - sspovr.doc
  70. \%MSTOOLS%\lib
  71. - scarddlg.lib
  72. - winscard.lib
  73. - scarddat.tlb
  74. - scardmgr.tlb
  75. - scardsrv.tlb
  76. \%MSTOOLS%\samples\winbase\scard\ssps
  77. - readssp.txt
  78. \%MSTOOLS%\samples\winbase\scard\aggreg
  79. - scardagg.cpp
  80. - scardni.cpp
  81. - preagg.cpp
  82. - scardagg.def
  83. - dllaggx.h
  84. - dllaggx.c
  85. - scardni.h
  86. - preagg.h
  87. - resagg.h
  88. - scardagg.idl
  89. - scardagg.mak
  90. - scardagg.rc
  91. \%MSTOOLS%\samples\winbase\scard\aggreg\test
  92. - aggtest.cpp
  93. - aggtest.mak
  94. \%MSTOOLS%\samples\winbase\scard\app
  95. - scarddg.cpp
  96. - scardtst.cpp
  97. - preapp.cpp
  98. - resapp.h
  99. - scarddg.h
  100. - scardtst.h
  101. - preapp.h
  102. - scardtst.mak
  103. - scardtst.rc
  104. \%MSTOOLS%\samples\winbase\scard\app\res
  105. - scardtst.ico
  106. - scardtst.rc2
  107. \%MSTOOLS%\samples\winbase\scard\html
  108. - download.htm
  109. - example.htm
  110. \%MSTOOLS%\samples\winbase\scard\java
  111. - ByteBuff.java
  112. - SCBase.java
  113. - SCard.java
  114. - SCardCmd.java
  115. - SCardISO.java
  116. - SCConsnt.java
  117. - Test.java
  118. \%MSTOOLS%\samples\winbase\scard\llcom
  119. - scdtest.cpp
  120. - test.mak
  121. \%MSTOOLS%\samples\winbase\scard\setup
  122. - webssp.cdf
  123. - webssp.inf
  124. \%MSTOOLS%\samples\winbase\scard\vb
  125. - scardvb.frm
  126. - scardvb.vbp
  127. \%MSTOOLS%\samples\winbase\scard\scardcom
  128. - scardath.cpp
  129. - scardcom.cpp
  130. - scardfil.cpp
  131. - scardman.cpp
  132. - scardver.cpp
  133. - stdafx.cpp
  134. - wrphelp.cpp
  135. - scardcom.def
  136. - resource.h
  137. - scardath.h
  138. - scarddef.h
  139. - scardfil.h
  140. - scardman.h
  141. - scardver.h
  142. - stdafx.h
  143. - wrphelp.h
  144. - scardcom.idl
  145. - scardcom.rc2
  146. - scardcom.rc
  147. - dlldatax.h
  148. - dlldatax.c
  149. - scardcom.mak
  150. \%MSTOOLS%\samples\winbase\scard\scardcom\cppwrap
  151. - scardwrp.cpp
  152. - scardwrp.h
  153. ---------------
  154. 5. Installation
  155. ---------------
  156. To install the Win32 Smart Card SDK on a development machine, run
  157. SETUP.EXE from the root of disk 1 of the distribution media. Before
  158. running SETUP.EXE, the Win32 Platform SDK must be installed on the
  159. target machine. The setup program will prompt for the installation
  160. path. (The suggested path is your current %MSTOOLS% path: <YourDrive>:\SDK\...)
  161. Along with the SDK, the system level components
  162. scardsvr.exe
  163. winscard.dll
  164. scarddlg.dll
  165. scarddat.dll
  166. scardmgr.dll
  167. scardsrv.dll
  168. scntvssp.dll
  169. must be installed on your system. The system level components are
  170. distributed separately from the SDK components. Refer to the README
  171. for the system level components for information on how to install
  172. them on your target machine.
  173. Along with the system level components, a smart card reader and device
  174. driver should be installed on your target machine in order for your
  175. application or service provider DLL to communicate with a smart card
  176. and reader. Please refer to the Smart Card DDK README for information
  177. on how to install the DDK components and device drivers.
  178. ---------------
  179. 6. C++ Projects
  180. ---------------
  181. Visual C++ 5.0 or greater is required to build the C++ projects.
  182. The following steps should be taken to build the projects from within
  183. Developer Studio:
  184. 1) Rebuild the low-level COM component .IDL files. (See Building .IDL Files).
  185. 2) Set the following include paths in the Tools\Options\Directories menu
  186. property sheet:
  187. "<Your SDK Install path>\include"
  188. "<Your SDK Install path>\samples\winbase\scard\app"
  189. "<Your SDK Install path>\samples\winbase\scard\scardcom"
  190. "<Your SDK Install path>\samples\winbase\scard\scardcom\cppwrap"
  191. 3) Open the example's .mak file in Visual C++.
  192. 4) Build the project(s).
  193. Notes:
  194. 1) To change the default build type (Debug, Release, etc.) edit the
  195. first four lines of the .mak file selecting an alternate build.
  196. 2) The projects may be built from the command line after setting the Visual C++
  197. environment variables.
  198. ------------------
  199. 7. Java Project
  200. ------------------
  201. Visual J++ 1.0 or greater is required to build the Java project.
  202. The following steps should be taken to build the project within Developer
  203. Studio:
  204. 1) Create a new Java Project Workspace.
  205. 2) Add all the java sample files to the project.
  206. 3) Compile the project.
  207. ------------------
  208. 8. VB Project
  209. ------------------
  210. Visual Basic 5.0 or greater is required to build the project.
  211. The following steps should be taken to build the project:
  212. 1) Open the .vbp.
  213. 2) Make sure the low-level smart card COM (scarddat, scardmgr, scardsrv)
  214. components are referenced in the project.
  215. 3) Build the project.
  216. ------------------
  217. 9. Building .IDL Files
  218. ------------------
  219. To rebuild the smart card low-level COM component .IDL files, use the
  220. following command:
  221. midl /I<Your Visual C++ install Path>\Include <Filename.Idl>
  222. In this case, it is assumed the \Include directory contains all SDK
  223. headers not just smart card specific headers.
  224. These files we need to be rebuilt in order to build the samples.