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.

102 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1997 - 1999 SCM Microsystems, Inc.
  3. Module Name:
  4. PscrCmd.h
  5. Abstract:
  6. Prototypes of basic command functions for SCM PSCR smartcard reader
  7. Author:
  8. Andreas Straub
  9. Revision History:
  10. Andreas Straub 7/16/1997 Initial Version
  11. --*/
  12. #if !defined( __PSCR_CMD_H__ )
  13. #define __PSCR_CMD_H__
  14. NTSTATUS
  15. CmdResetInterface(
  16. PREADER_EXTENSION ReaderExtension // context of call
  17. );
  18. NTSTATUS
  19. CmdReset(
  20. PREADER_EXTENSION ReaderExtension, // context of call
  21. UCHAR Device, // device
  22. BOOLEAN WarmReset, // TRUE: Warm, FALSE: cold Reset
  23. PUCHAR pATR, // ptr to ATR buffer
  24. PULONG ATRLength // len of ATR
  25. );
  26. NTSTATUS
  27. CmdDeactivate(
  28. PREADER_EXTENSION ReaderExtension, // context of call
  29. UCHAR Device // device
  30. );
  31. NTSTATUS
  32. CmdReadBinary(
  33. PREADER_EXTENSION ReaderExtension, // context of call
  34. USHORT Offset, // offset in file
  35. PUCHAR pData, // data buffer
  36. PULONG pNBytes // length of bytes read
  37. );
  38. NTSTATUS
  39. CmdSelectFile(
  40. PREADER_EXTENSION ReaderExtension, // context of call
  41. USHORT FileId // File Id
  42. );
  43. NTSTATUS
  44. CmdSetInterfaceParameter(
  45. PREADER_EXTENSION ReaderExtension, // context of call
  46. UCHAR Device, // device
  47. PUCHAR pTLVList, // ptr to TLV list
  48. UCHAR TLVListLen // len of TLV list
  49. );
  50. NTSTATUS
  51. CmdReadStatusFile (
  52. PREADER_EXTENSION ReaderExtension, // context of call
  53. UCHAR Device, // device
  54. PUCHAR pTLVList, // ptr to TLV list
  55. PULONG TLVListLen // len of TLV list
  56. );
  57. NTSTATUS
  58. CmdPscrCommand (
  59. PREADER_EXTENSION ReaderExtension, // context of call
  60. PUCHAR pInData, // ptr to input buffer
  61. ULONG InDataLen, // len of input buffer
  62. PUCHAR pOutData, // ptr to ouput buffer
  63. ULONG OutDataLen, // len of output buffer
  64. PULONG pNBytes // number of bytes transferred
  65. );
  66. NTSTATUS
  67. CmdGetFirmwareRevision (
  68. PREADER_EXTENSION ReaderExtension // context of call
  69. );
  70. NTSTATUS
  71. CmdGetTagValue (
  72. UCHAR Tag, // tag to be searched
  73. PUCHAR pTLVList, // ptr to TLV list
  74. ULONG TLVListLen, // len of TLV list
  75. PUCHAR pTagLen, // tag length
  76. PVOID pTagVal // tag value
  77. );
  78. #endif // __PSCR_CMD_H__
  79. //------------------------------- END OF FILE -------------------------------*/