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.

134 lines
2.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) SCM Microsystems, 1998 - 1999
  6. //
  7. // File: stccmd.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #if !defined( __STC_COMMAND_H__ )
  11. #define __STC_COMMAND_H__
  12. #include "STC.h"
  13. NTSTATUS
  14. STCReset(
  15. PREADER_EXTENSION ReaderExtension,
  16. UCHAR Device,
  17. BOOLEAN WarmReset,
  18. PUCHAR pATR,
  19. PULONG pATRLength
  20. );
  21. NTSTATUS
  22. STCReadATR(
  23. PREADER_EXTENSION ReaderExtension,
  24. PUCHAR pATR,
  25. PULONG pATRLength
  26. );
  27. NTSTATUS
  28. STCPowerOff(
  29. PREADER_EXTENSION ReaderExtension
  30. );
  31. NTSTATUS
  32. STCPowerOn(
  33. PREADER_EXTENSION ReaderExtension
  34. );
  35. NTSTATUS
  36. STCSetRST(
  37. PREADER_EXTENSION ReaderExtension,
  38. BOOLEAN On
  39. );
  40. NTSTATUS
  41. STCConfigureSTC(
  42. PREADER_EXTENSION ReaderExtension,
  43. PSTC_REGISTER pConfiguration
  44. );
  45. NTSTATUS
  46. STCWriteICC1 (
  47. PREADER_EXTENSION ReaderExtension,
  48. PUCHAR APDU,
  49. ULONG APDULen
  50. );
  51. NTSTATUS
  52. STCReadICC1(
  53. PREADER_EXTENSION ReaderExtension,
  54. PUCHAR InData,
  55. PULONG InDataLen,
  56. ULONG BytesRead
  57. );
  58. NTSTATUS
  59. STCReadSTCRegister(
  60. PREADER_EXTENSION ReaderExtension,
  61. UCHAR Address,
  62. ULONG Size,
  63. PUCHAR pValue
  64. );
  65. NTSTATUS
  66. STCWriteSTCRegister(
  67. PREADER_EXTENSION ReaderExtension,
  68. UCHAR Address,
  69. ULONG Size,
  70. PUCHAR pValue
  71. );
  72. NTSTATUS
  73. STCSetETU(
  74. PREADER_EXTENSION ReaderExtension,
  75. ULONG NewETU
  76. );
  77. NTSTATUS
  78. STCSetCGT(
  79. PREADER_EXTENSION ReaderExtension,
  80. ULONG NewCGT
  81. );
  82. NTSTATUS
  83. STCSetCWT(
  84. PREADER_EXTENSION ReaderExtension,
  85. ULONG NewCWT
  86. );
  87. NTSTATUS
  88. STCSetBWT(
  89. PREADER_EXTENSION ReaderExtension,
  90. ULONG NewBWT
  91. );
  92. NTSTATUS
  93. STCSetFDIV(
  94. PREADER_EXTENSION ReaderExtension,
  95. ULONG Factor
  96. );
  97. NTSTATUS
  98. STCInitUART(
  99. PREADER_EXTENSION ReaderExtension,
  100. BOOLEAN AutoLearn
  101. );
  102. NTSTATUS
  103. STCGetFirmwareRevision(
  104. PREADER_EXTENSION ReaderExtension
  105. );
  106. extern const STC_REGISTER STCInitialize[];
  107. extern const STC_REGISTER STCClose[];
  108. #endif // !__STC_COMMAND_H__
  109. //---------------------------------------- END OF FILE ----------------------------------------