1 | /*
|
---|
2 | * Winscard definitions
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | /* Note that if you included winerror.h directly or indirectly,
|
---|
29 | * none of these definitions will be used!
|
---|
30 | */
|
---|
31 | #ifndef SCARD_S_SUCCESS
|
---|
32 |
|
---|
33 | #define FACILITY_SYSTEM 0
|
---|
34 | #define FACILITY_SCARD 16
|
---|
35 |
|
---|
36 | #define STATUS_SEVERITY_INFORMATIONAL ((NTSTATUS) 0x00000001)
|
---|
37 | #define STATUS_SEVERITY_WARNING ((NTSTATUS) 0x00000002)
|
---|
38 | #define STATUS_SEVERITY_ERROR ((NTSTATUS) 0x00000003)
|
---|
39 |
|
---|
40 | #define SCARD_S_SUCCESS NO_ERROR
|
---|
41 | #define SCARD_F_INTERNAL_ERROR ((DWORD)0x80100001)
|
---|
42 | #define SCARD_E_CANCELLED ((DWORD)0x80100002)
|
---|
43 | #define SCARD_E_INVALID_HANDLE ((DWORD)0x80100003)
|
---|
44 | #define SCARD_E_INVALID_PARAMETER ((DWORD)0x80100004)
|
---|
45 | #define SCARD_E_INVALID_TARGET ((DWORD)0x80100005)
|
---|
46 | #define SCARD_E_NO_MEMORY ((DWORD)0x80100006)
|
---|
47 | #define SCARD_F_WAITED_TOO_LONG ((DWORD)0x80100007)
|
---|
48 | #define SCARD_E_INSUFFICIENT_BUFFER ((DWORD)0x80100008)
|
---|
49 | #define SCARD_E_UNKNOWN_READER ((DWORD)0x80100009)
|
---|
50 | #define SCARD_E_TIMEOUT ((DWORD)0x8010000A)
|
---|
51 | #define SCARD_E_SHARING_VIOLATION ((DWORD)0x8010000B)
|
---|
52 | #define SCARD_E_NO_SMARTCARD ((DWORD)0x8010000C)
|
---|
53 | #define SCARD_E_UNKNOWN_CARD ((DWORD)0x8010000D)
|
---|
54 | #define SCARD_E_CANT_DISPOSE ((DWORD)0x8010000E)
|
---|
55 | #define SCARD_E_PROTO_MISMATCH ((DWORD)0x8010000F)
|
---|
56 | #define SCARD_E_NOT_READY ((DWORD)0x80100010)
|
---|
57 | #define SCARD_E_INVALID_VALUE ((DWORD)0x80100011)
|
---|
58 | #define SCARD_E_SYSTEM_CANCELLED ((DWORD)0x80100012)
|
---|
59 | #define SCARD_F_COMM_ERROR ((DWORD)0x80100013)
|
---|
60 | #define SCARD_F_UNKNOWN_ERROR ((DWORD)0x80100014)
|
---|
61 | #define SCARD_E_INVALID_ATR ((DWORD)0x80100015)
|
---|
62 | #define SCARD_E_NOT_TRANSACTED ((DWORD)0x80100016)
|
---|
63 | #define SCARD_E_READER_UNAVAILABLE ((DWORD)0x80100017)
|
---|
64 | #define SCARD_P_SHUTDOWN ((DWORD)0x80100018)
|
---|
65 | #define SCARD_E_PCI_TOO_SMALL ((DWORD)0x80100019)
|
---|
66 | #define SCARD_E_READER_UNSUPPORTED ((DWORD)0x8010001A)
|
---|
67 | #define SCARD_E_DUPLICATE_READER ((DWORD)0x8010001B)
|
---|
68 | #define SCARD_E_CARD_UNSUPPORTED ((DWORD)0x8010001C)
|
---|
69 | #define SCARD_E_NO_SERVICE ((DWORD)0x8010001D)
|
---|
70 | #define SCARD_E_SERVICE_STOPPED ((DWORD)0x8010001E)
|
---|
71 | #define SCARD_E_UNEXPECTED ((DWORD)0x8010001F)
|
---|
72 | #define SCARD_E_ICC_INSTALLATION ((DWORD)0x80100020)
|
---|
73 | #define SCARD_E_ICC_CREATEORDER ((DWORD)0x80100021)
|
---|
74 | #define SCARD_E_UNSUPPORTED_FEATURE ((DWORD)0x80100022)
|
---|
75 | #define SCARD_E_DIR_NOT_FOUND ((DWORD)0x80100023)
|
---|
76 | #define SCARD_E_FILE_NOT_FOUND ((DWORD)0x80100024)
|
---|
77 | #define SCARD_E_NO_DIR ((DWORD)0x80100025)
|
---|
78 | #define SCARD_E_NO_FILE ((DWORD)0x80100026)
|
---|
79 | #define SCARD_E_NO_ACCESS ((DWORD)0x80100027)
|
---|
80 | #define SCARD_E_WRITE_TOO_MANY ((DWORD)0x80100028)
|
---|
81 | #define SCARD_E_BAD_SEEK ((DWORD)0x80100029)
|
---|
82 | #define SCARD_E_INVALID_CHV ((DWORD)0x8010002A)
|
---|
83 | #define SCARD_E_UNKNOWN_RES_MNG ((DWORD)0x8010002B)
|
---|
84 | #define SCARD_E_NO_SUCH_CERTIFICATE ((DWORD)0x8010002C)
|
---|
85 | #define SCARD_E_CERTIFICATE_UNAVAILABLE ((DWORD)0x8010002D)
|
---|
86 | #define SCARD_E_NO_READERS_AVAILABLE ((DWORD)0x8010002E)
|
---|
87 | #define SCARD_E_COMM_DATA_LOST ((DWORD)0x8010002F)
|
---|
88 | #define SCARD_E_NO_KEY_CONTAINER ((DWORD)0x80100030)
|
---|
89 | #define SCARD_E_SERVER_TOO_BUSY ((DWORD)0x80100031)
|
---|
90 | #define SCARD_W_UNSUPPORTED_CARD ((DWORD)0x80100065)
|
---|
91 | #define SCARD_W_UNRESPONSIVE_CARD ((DWORD)0x80100066)
|
---|
92 | #define SCARD_W_UNPOWERED_CARD ((DWORD)0x80100067)
|
---|
93 | #define SCARD_W_RESET_CARD ((DWORD)0x80100068)
|
---|
94 | #define SCARD_W_REMOVED_CARD ((DWORD)0x80100069)
|
---|
95 | #define SCARD_W_SECURITY_VIOLATION ((DWORD)0x8010006A)
|
---|
96 | #define SCARD_W_WRONG_CHV ((DWORD)0x8010006B)
|
---|
97 | #define SCARD_W_CHV_BLOCKED ((DWORD)0x8010006C)
|
---|
98 | #define SCARD_W_EOF ((DWORD)0x8010006D)
|
---|
99 | #define SCARD_W_CANCELLED_BY_USER ((DWORD)0x8010006E)
|
---|
100 | #define SCARD_W_CARD_NOT_AUTHENTICATED ((DWORD)0x8010006F)
|
---|
101 | #define SCARD_W_CACHE_ITEM_NOT_FOUND ((DWORD)0x80100070)
|
---|
102 | #define SCARD_W_CACHE_ITEM_STALE ((DWORD)0x80100071)
|
---|
103 | #define SCARD_W_CACHE_ITEM_TOO_BIG ((DWORD)0x80100072)
|
---|
104 |
|
---|
105 | #endif /* SCARD_S_SUCCESS */
|
---|