VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/winscard.h@ 19982

Last change on this file since 19982 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

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