VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/winscard.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette