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.

107 lines
4.4 KiB

  1. /*****************************************************************************
  2. @doc INT EXT
  3. ******************************************************************************
  4. * $ProjectName: $
  5. * $ProjectRevision: $
  6. *-----------------------------------------------------------------------------
  7. * $Source: z:/pr/cmapiifd/sw/sccmusbm.ms/rcs/pcsc_cm.h $
  8. * $Revision: 1.1 $
  9. *-----------------------------------------------------------------------------
  10. * $Author: TBruendl $
  11. *-----------------------------------------------------------------------------
  12. * History: see EOF
  13. *-----------------------------------------------------------------------------
  14. *
  15. * Copyright (c) 1996-99 Utimaco Safeware AG
  16. ******************************************************************************/
  17. #ifndef _INC_PCSC_CM
  18. #define _INC_PCSC_CM
  19. /*****************************************************************************/
  20. /** includes **/
  21. /*****************************************************************************/
  22. #include <winsmcrd.h>
  23. #include <devioctl.h>
  24. /*****************************************************************************/
  25. /** constants **/
  26. /*****************************************************************************/
  27. #define CM_IOCTL_CR80S_SAMOS_SET_HIGH_SPEED SCARD_CTL_CODE (3000)
  28. #define CM_IOCTL_CR80S_SAMOS_SET_HIGH_SPEED_OLD SCARD_CTL_CODE (0x8100)
  29. #define CM_IOCTL_GET_FW_VERSION SCARD_CTL_CODE (3001)
  30. #define CM_IOCTL_GET_FW_VERSION_OLD SCARD_CTL_CODE (0x8101)
  31. //#define CM_SPE_SECURE_PIN_ENTRY SCARD_CTL_CODE (0x8102)
  32. //#define CM_IOCTL_IS_SPE_SUPPORTED SCARD_CTL_CODE (3003)
  33. //#define CM_IOCTL_IS_SPE_SUPPORTED_OLD SCARD_CTL_CODE (0x8103)
  34. #define CM_IOCTL_READ_DEVICE_DESCRIPTION SCARD_CTL_CODE (3004)
  35. #define CM_IOCTL_SET_SYNC_PARAMETERS SCARD_CTL_CODE (3010)
  36. #define CM_IOCTL_2WBP_RESET_CARD SCARD_CTL_CODE (3011)
  37. #define CM_IOCTL_2WBP_TRANSFER SCARD_CTL_CODE (3012)
  38. #define CM_IOCTL_3WBP_TRANSFER SCARD_CTL_CODE (3013)
  39. #define CM_IOCTL_SYNC_CARD_POWERON SCARD_CTL_CODE (3014)
  40. #define CM_IOCTL_SET_READER_38400_BAUD SCARD_CTL_CODE (3020)
  41. #define CM_IOCTL_SET_READER_9600_BAUD SCARD_CTL_CODE (3021)
  42. #define CM_IOCTL_OPEN_CT_INTERFACE SCARD_CTL_CODE (3022)
  43. #define CM_IOCTL_CLOSE_CT_INTERFACE SCARD_CTL_CODE (3023)
  44. #define CM_IOCTL_GET_CT_STATE SCARD_CTL_CODE (3024)
  45. //****************************************************************************
  46. //* SYNCHRONOUS SMART CARDS
  47. //****************************************************************************
  48. #define SCARD_RESET_LINE_HIGH 0x00000001
  49. #define SCARD_RESET_LINE_LOW 0x00000000
  50. #define SCARD_PROTOCOL_2WBP 0x00000001
  51. #define SCARD_PROTOCOL_3WBP 0x00000002
  52. //#define CLOCK_FORDCED_2WBP 0x00000040
  53. //----------------------------------------------------------------------------
  54. // structure for "CM_IOCTL_SET_SYNC_PARAMETERS" IO-Control (CrasControl)
  55. //----------------------------------------------------------------------------
  56. #ifndef BOOL
  57. #define BOOL unsigned int
  58. #endif
  59. typedef struct _SYNC_PARAMETERS {
  60. ULONG ulProtocol;
  61. ULONG ulStateResetLineWhileReading;
  62. ULONG ulStateResetLineWhileWriting;
  63. ULONG ulWriteDummyClocks;
  64. ULONG ulHeaderLen;
  65. BOOL fCardResetRequested;
  66. BOOL fCardPowerRequested;
  67. } SYNC_PARAMETERS, *PSYNC_PARAMETERS;
  68. //----------------------------------------------------------------------------
  69. // structure for CM_IOCTL_2WBP_TRANSFER and CM_IOCTL_3WBP_TRANSFER
  70. // IO-Control (CRASControl)
  71. //----------------------------------------------------------------------------
  72. typedef struct _SYNC_TRANSFER
  73. {
  74. ULONG ulSyncBitsToWrite;
  75. ULONG ulSyncBitsToRead;
  76. }SYNC_TRANSFER, *PSYNC_TRANSFER;
  77. #endif /* _INC_PCSC_CM */
  78. /*****************************************************************************
  79. * History:
  80. * $Log: pcsc_cm.h $
  81. * Revision 1.1 2000/03/29 06:08:13 TBruendl
  82. * No comment given
  83. *
  84. *****************************************************************************/