d3dx9: Avoid LPD3DXPRTBUFFER.
[wine] / include / winscard.h
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 #ifndef __WINE_WINSCARD_H
20 #define __WINE_WINSCARD_H
21
22 #include <wtypes.h>
23 #include <winioctl.h>
24 #include <winsmcrd.h>
25 #include <scarderr.h>
26
27 /* Valid scopes for contexts */
28 #define SCARD_SCOPE_USER     0
29 #define SCARD_SCOPE_TERMINAL 1
30 #define SCARD_SCOPE_SYSTEM   2
31
32 #ifndef _LPCBYTE_DEFINED
33 #define _LPCBYTE_DEFINED
34 typedef const BYTE *LPCBYTE;
35 #endif
36
37 typedef ULONG_PTR SCARDCONTEXT, *PSCARDCONTEXT, *LPSCARDCONTEXT;
38 typedef ULONG_PTR SCARDHANDLE,  *PSCARDHANDLE,  *LPSCARDHANDLE;
39
40 typedef struct _SCARD_ATRMASK
41 {
42     DWORD cbAtr;
43     BYTE  rgbAtr[36];
44     BYTE  rgbMask[36];
45 } SCARD_ATRMASK, *PSCARD_ATRMASK, *LPSCARD_ATRMASK;
46
47 typedef struct
48 {
49     LPCSTR szReader;
50     LPVOID pvUserData;
51     DWORD  dwCurrentState;
52     DWORD  dwEventState;
53     DWORD  cbAtr;
54     BYTE   rgbAtr[36];
55 } SCARD_READERSTATEA, *PSCARD_READERSTATEA, *LPSCARD_READERSTATEA;
56 typedef struct
57 {
58     LPCWSTR szReader;
59     LPVOID  pvUserData;
60     DWORD   dwCurrentState;
61     DWORD   dwEventState;
62     DWORD   cbAtr;
63     BYTE    rgbAtr[36];
64 } SCARD_READERSTATEW, *PSCARD_READERSTATEW, *LPSCARD_READERSTATEW;
65 DECL_WINELIB_TYPE_AW(SCARD_READERSTATE)
66 DECL_WINELIB_TYPE_AW(PSCARD_READERSTATE)
67 DECL_WINELIB_TYPE_AW(LPSCARD_READERSTATE)
68
69
70 #ifdef __cplusplus
71 extern "C" {
72 #endif
73
74 HANDLE      WINAPI SCardAccessStartedEvent(void);
75 LONG        WINAPI SCardAddReaderToGroupA(SCARDCONTEXT,LPCSTR,LPCSTR);
76 LONG        WINAPI SCardAddReaderToGroupW(SCARDCONTEXT,LPCWSTR,LPCWSTR);
77 #define     SCardAddReaderToGroup WINELIB_NAME_AW(SCardAddReaderToGroup)
78 LONG        WINAPI SCardBeginTransaction(SCARDHANDLE);
79 LONG        WINAPI SCardCancel(SCARDCONTEXT);
80 LONG        WINAPI SCardConnectA(SCARDCONTEXT,LPCSTR,DWORD,DWORD,LPSCARDHANDLE,LPDWORD);
81 LONG        WINAPI SCardConnectW(SCARDCONTEXT,LPCWSTR,DWORD,DWORD,LPSCARDHANDLE,LPDWORD);
82 #define     SCardConnect WINELIB_NAME_AW(SCardConnect)
83 LONG        WINAPI SCardControl(SCARDHANDLE,DWORD,LPCVOID,DWORD,LPVOID,DWORD,LPDWORD);
84 LONG        WINAPI SCardDisconnect(SCARDHANDLE,DWORD);
85 LONG        WINAPI SCardEndTransaction(SCARDHANDLE,DWORD);
86 LONG        WINAPI SCardEstablishContext(DWORD,LPCVOID,LPCVOID,LPSCARDCONTEXT);
87 LONG        WINAPI SCardForgetCardTypeA(SCARDCONTEXT,LPCSTR);
88 LONG        WINAPI SCardForgetCardTypeW(SCARDCONTEXT,LPCWSTR);
89 #define     SCardForgetCardType WINELIB_NAME_AW(SCardForgetCardType)
90 LONG        WINAPI SCardForgetReaderA(SCARDCONTEXT,LPCSTR);
91 LONG        WINAPI SCardForgetReaderW(SCARDCONTEXT,LPCWSTR);
92 #define     SCardForgetReader WINELIB_NAME_AW(SCardForgetReader)
93 LONG        WINAPI SCardForgetReaderGroupA(SCARDCONTEXT,LPCSTR);
94 LONG        WINAPI SCardForgetReaderGroupW(SCARDCONTEXT,LPCWSTR);
95 #define     SCardForgetReaderGroup WINELIB_NAME_AW(SCardForgetReaderGroup)
96 LONG        WINAPI SCardFreeMemory(SCARDCONTEXT,LPCVOID);
97 LONG        WINAPI SCardGetAttrib(SCARDHANDLE,DWORD,LPBYTE,LPDWORD);
98 LONG        WINAPI SCardGetCardTypeProviderNameA(SCARDCONTEXT,LPCSTR,DWORD,LPSTR,LPDWORD);
99 LONG        WINAPI SCardGetCardTypeProviderNameW(SCARDCONTEXT,LPCWSTR,DWORD,LPWSTR,LPDWORD);
100 #define     SCardGetCardTypeProviderName WINELIB_NAME_AW(SCardGetCardTypeProviderName)
101 LONG        WINAPI SCardGetProviderIdA(SCARDCONTEXT,LPCSTR,LPGUID);
102 LONG        WINAPI SCardGetProviderIdW(SCARDCONTEXT,LPCWSTR,LPGUID);
103 #define     SCardGetProviderId WINELIB_NAME_AW(SCardGetProviderId)
104 LONG        WINAPI SCardGetStatusChangeA(SCARDCONTEXT,DWORD,LPSCARD_READERSTATEA,DWORD);
105 LONG        WINAPI SCardGetStatusChangeW(SCARDCONTEXT,DWORD,LPSCARD_READERSTATEW,DWORD);
106 #define     SCardGetStatusChange WINELIB_NAME_AW(SCardGetStatusChange)
107 LONG        WINAPI SCardIntroduceCardTypeA(SCARDCONTEXT,LPCSTR,LPCGUID,LPCGUID,DWORD,LPCBYTE,LPCBYTE,DWORD);
108 LONG        WINAPI SCardIntroduceCardTypeW(SCARDCONTEXT,LPCWSTR,LPCGUID,LPCGUID,DWORD,LPCBYTE,LPCBYTE,DWORD);
109 #define     SCardIntroduceCardType WINELIB_NAME_AW(SCardIntroduceCardType)
110 LONG        WINAPI SCardIntroduceReaderA(SCARDCONTEXT,LPCSTR,LPCSTR);
111 LONG        WINAPI SCardIntroduceReaderW(SCARDCONTEXT,LPCWSTR,LPCWSTR);
112 #define     SCardIntroduceReader WINELIB_NAME_AW(SCardIntroduceReader)
113 LONG        WINAPI SCardIntroduceReaderGroupA(SCARDCONTEXT,LPCSTR);
114 LONG        WINAPI SCardIntroduceReaderGroupW(SCARDCONTEXT,LPCWSTR);
115 #define     SCardIntroduceReaderGroup WINELIB_NAME_AW(SCardIntroduceReaderGroup)
116 LONG        WINAPI SCardIsValidContext(SCARDCONTEXT);
117 LONG        WINAPI SCardListCardsA(SCARDCONTEXT,LPCBYTE,LPCGUID,DWORD,LPSTR,LPDWORD);
118 LONG        WINAPI SCardListCardsW(SCARDCONTEXT,LPCBYTE,LPCGUID,DWORD,LPWSTR,LPDWORD);
119 #define     SCardListCards WINELIB_NAME_AW(SCardListCards)
120 LONG        WINAPI SCardListInterfacesA(SCARDCONTEXT,LPCSTR,LPGUID,LPDWORD);
121 LONG        WINAPI SCardListInterfacesW(SCARDCONTEXT,LPCWSTR,LPGUID,LPDWORD);
122 #define     SCardListInterfaces WINELIB_NAME_AW(SCardListInterfaces)
123 LONG        WINAPI SCardListReadersA(SCARDCONTEXT,LPCSTR,LPSTR,LPDWORD);
124 LONG        WINAPI SCardListReadersW(SCARDCONTEXT,LPCWSTR,LPWSTR,LPDWORD);
125 #define     SCardListReaders WINELIB_NAME_AW(SCardListReaders)
126 LONG        WINAPI SCardListReaderGroupsA(SCARDCONTEXT,LPSTR,LPDWORD);
127 LONG        WINAPI SCardListReaderGroupsW(SCARDCONTEXT,LPWSTR,LPDWORD);
128 #define     SCardListReaderGroups WINELIB_NAME_AW(SCardListReaderGroups)
129 LONG        WINAPI SCardLocateCardsA(SCARDCONTEXT,LPCSTR,LPSCARD_READERSTATEA,DWORD);
130 LONG        WINAPI SCardLocateCardsW(SCARDCONTEXT,LPCWSTR,LPSCARD_READERSTATEW,DWORD);
131 #define     SCardLocateCards WINELIB_NAME_AW(SCardLocateCards)
132 LONG        WINAPI SCardLocateCardsByATRA(SCARDCONTEXT,LPSCARD_ATRMASK,DWORD,LPSCARD_READERSTATEA,DWORD);
133 LONG        WINAPI SCardLocateCardsByATRW(SCARDCONTEXT,LPSCARD_ATRMASK,DWORD,LPSCARD_READERSTATEW,DWORD);
134 #define     SCardLocateCardsByATR WINELIB_NAME_AW(SCardLocateCardsByATR)
135 LONG        WINAPI SCardReconnect(SCARDHANDLE,DWORD,DWORD,DWORD,LPDWORD);
136 LONG        WINAPI SCardReleaseContext(SCARDCONTEXT);
137 void        WINAPI SCardReleaseStartedEvent(void);
138 LONG        WINAPI SCardRemoveReaderFromGroupA(SCARDCONTEXT,LPCSTR,LPCSTR);
139 LONG        WINAPI SCardRemoveReaderFromGroupW(SCARDCONTEXT,LPCWSTR,LPCWSTR);
140 #define     SCardRemoveReaderFromGroup WINELIB_NAME_AW(SCardRemoveReaderFromGroup)
141 LONG        WINAPI SCardSetAttrib(SCARDHANDLE,DWORD,LPCBYTE,DWORD);
142 LONG        WINAPI SCardSetCardTypeProviderNameA(SCARDCONTEXT,LPCSTR,DWORD,LPCSTR);
143 LONG        WINAPI SCardSetCardTypeProviderNameW(SCARDCONTEXT,LPCWSTR,DWORD,LPCWSTR);
144 #define     SCardSetCardTypeProviderName WINELIB_NAME_AW(SCardSetCardTypeProviderName)
145 LONG        WINAPI SCardState(SCARDHANDLE,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
146 LONG        WINAPI SCardStatusA(SCARDHANDLE,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
147 LONG        WINAPI SCardStatusW(SCARDHANDLE,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
148 #define     SCardStatus WINELIB_NAME_AW(SCardStatus)
149 LONG        WINAPI SCardTransmit(SCARDHANDLE,LPCSCARD_IO_REQUEST,LPCBYTE,DWORD,LPSCARD_IO_REQUEST,LPBYTE,LPDWORD);
150
151 #ifdef __cplusplus
152 }
153 #endif
154
155 #endif  /* __WINE_WINSCARD_H */