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