ReactOS 0.4.15-dev-7108-g1cf6ce6
winscard.h
Go to the documentation of this file.
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
34typedef const BYTE *LPCBYTE;
35#endif
36
39
40typedef struct _SCARD_ATRMASK
41{
46
47typedef struct
48{
54 BYTE rgbAtr[36];
56typedef struct
57{
63 BYTE rgbAtr[36];
65DECL_WINELIB_TYPE_AW(SCARD_READERSTATE)
66DECL_WINELIB_TYPE_AW(PSCARD_READERSTATE)
67DECL_WINELIB_TYPE_AW(LPSCARD_READERSTATE)
68
69
70#ifdef __cplusplus
71extern "C" {
72#endif
73
77#define SCardAddReaderToGroup WINELIB_NAME_AW(SCardAddReaderToGroup)
82#define SCardConnect WINELIB_NAME_AW(SCardConnect)
89#define SCardForgetCardType WINELIB_NAME_AW(SCardForgetCardType)
92#define SCardForgetReader WINELIB_NAME_AW(SCardForgetReader)
95#define SCardForgetReaderGroup WINELIB_NAME_AW(SCardForgetReaderGroup)
100#define SCardGetCardTypeProviderName WINELIB_NAME_AW(SCardGetCardTypeProviderName)
103#define SCardGetProviderId WINELIB_NAME_AW(SCardGetProviderId)
106#define SCardGetStatusChange WINELIB_NAME_AW(SCardGetStatusChange)
109#define SCardIntroduceCardType WINELIB_NAME_AW(SCardIntroduceCardType)
112#define SCardIntroduceReader WINELIB_NAME_AW(SCardIntroduceReader)
115#define SCardIntroduceReaderGroup WINELIB_NAME_AW(SCardIntroduceReaderGroup)
119#define SCardListCards WINELIB_NAME_AW(SCardListCards)
122#define SCardListInterfaces WINELIB_NAME_AW(SCardListInterfaces)
125#define SCardListReaders WINELIB_NAME_AW(SCardListReaders)
128#define SCardListReaderGroups WINELIB_NAME_AW(SCardListReaderGroups)
131#define SCardLocateCards WINELIB_NAME_AW(SCardLocateCards)
134#define SCardLocateCardsByATR WINELIB_NAME_AW(SCardLocateCardsByATR)
140#define SCardRemoveReaderFromGroup WINELIB_NAME_AW(SCardRemoveReaderFromGroup)
144#define SCardSetCardTypeProviderName WINELIB_NAME_AW(SCardSetCardTypeProviderName)
148#define SCardStatus WINELIB_NAME_AW(SCardStatus)
150
151#ifdef __cplusplus
152}
153#endif
154
155#endif /* __WINE_WINSCARD_H */
unsigned long DWORD
Definition: ntddk_ex.h:95
long LONG
Definition: pedump.c:60
LPVOID pvUserData
Definition: winscard.h:50
DWORD dwCurrentState
Definition: winscard.h:51
DWORD dwEventState
Definition: winscard.h:52
DWORD dwEventState
Definition: winscard.h:61
LPCWSTR szReader
Definition: winscard.h:58
DWORD dwCurrentState
Definition: winscard.h:60
LPVOID pvUserData
Definition: winscard.h:59
BYTE rgbMask[36]
Definition: winscard.h:44
DWORD cbAtr
Definition: winscard.h:42
BYTE rgbAtr[36]
Definition: winscard.h:43
unsigned char * LPBYTE
Definition: typedefs.h:53
uint32_t * LPDWORD
Definition: typedefs.h:59
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:401
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
LONG WINAPI SCardForgetReaderGroupA(SCARDCONTEXT, LPCSTR)
Definition: stubs.c:152
LONG WINAPI SCardStatusA(SCARDHANDLE, LPSTR, LPDWORD, LPDWORD, LPDWORD, LPBYTE, LPDWORD)
Definition: winscard.c:113
void WINAPI SCardReleaseStartedEvent(void)
Definition: winscard.c:127
LONG WINAPI SCardControl(SCARDHANDLE, DWORD, LPCVOID, DWORD, LPVOID, DWORD, LPDWORD)
Definition: stubs.c:63
struct SCARD_READERSTATEA * PSCARD_READERSTATEA
ULONG_PTR * PSCARDHANDLE
Definition: winscard.h:38
LONG WINAPI SCardEstablishContext(DWORD, LPCVOID, LPCVOID, LPSCARDCONTEXT)
Definition: winscard.c:84
struct _SCARD_ATRMASK * PSCARD_ATRMASK
LONG WINAPI SCardConnectW(SCARDCONTEXT, LPCWSTR, DWORD, DWORD, LPSCARDHANDLE, LPDWORD)
Definition: stubs.c:47
struct _SCARD_ATRMASK SCARD_ATRMASK
struct SCARD_READERSTATEA * LPSCARD_READERSTATEA
LONG WINAPI SCardReconnect(SCARDHANDLE, DWORD, DWORD, DWORD, LPDWORD)
Definition: stubs.c:500
LONG WINAPI SCardGetAttrib(SCARDHANDLE, DWORD, LPBYTE, LPDWORD)
Definition: stubs.c:188
ULONG_PTR * LPSCARDHANDLE
Definition: winscard.h:38
LONG WINAPI SCardConnectA(SCARDCONTEXT, LPCSTR, DWORD, DWORD, LPSCARDHANDLE, LPDWORD)
Definition: stubs.c:31
LONG WINAPI SCardAddReaderToGroupW(SCARDCONTEXT, LPCWSTR, LPCWSTR)
Definition: winscard.c:78
LONG WINAPI SCardFreeMemory(SCARDCONTEXT, LPCVOID)
Definition: stubs.c:176
LONG WINAPI SCardGetProviderIdW(SCARDCONTEXT, LPCWSTR, LPGUID)
Definition: stubs.c:245
LONG WINAPI SCardAddReaderToGroupA(SCARDCONTEXT, LPCSTR, LPCSTR)
Definition: winscard.c:60
LONG WINAPI SCardGetProviderIdA(SCARDCONTEXT, LPCSTR, LPGUID)
Definition: stubs.c:232
LONG WINAPI SCardIntroduceReaderGroupW(SCARDCONTEXT, LPCWSTR)
Definition: stubs.c:360
LONG WINAPI SCardForgetReaderGroupW(SCARDCONTEXT, LPCWSTR)
Definition: stubs.c:164
LONG WINAPI SCardSetCardTypeProviderNameA(SCARDCONTEXT, LPCSTR, DWORD, LPCSTR)
Definition: stubs.c:555
LONG WINAPI SCardLocateCardsByATRW(SCARDCONTEXT, LPSCARD_ATRMASK, DWORD, LPSCARD_READERSTATEW, DWORD)
Definition: stubs.c:485
LONG WINAPI SCardListCardsW(SCARDCONTEXT, LPCBYTE, LPCGUID, DWORD, LPWSTR, LPDWORD)
Definition: stubs.c:372
LONG WINAPI SCardSetCardTypeProviderNameW(SCARDCONTEXT, LPCWSTR, DWORD, LPCWSTR)
Definition: stubs.c:569
LONG WINAPI SCardIntroduceCardTypeA(SCARDCONTEXT, LPCSTR, LPCGUID, LPCGUID, DWORD, LPCBYTE, LPCBYTE, DWORD)
Definition: stubs.c:286
struct SCARD_READERSTATEW * LPSCARD_READERSTATEW
LONG WINAPI SCardForgetReaderA(SCARDCONTEXT, LPCSTR)
Definition: stubs.c:128
LONG WINAPI SCardLocateCardsW(SCARDCONTEXT, LPCWSTR, LPSCARD_READERSTATEW, DWORD)
Definition: stubs.c:456
LONG WINAPI SCardRemoveReaderFromGroupA(SCARDCONTEXT, LPCSTR, LPCSTR)
Definition: stubs.c:515
LONG WINAPI SCardListReaderGroupsW(SCARDCONTEXT, LPWSTR, LPDWORD)
Definition: stubs.c:429
LONG WINAPI SCardListReaderGroupsA(SCARDCONTEXT, LPSTR, LPDWORD)
Definition: stubs.c:416
LONG WINAPI SCardGetStatusChangeW(SCARDCONTEXT, DWORD, LPSCARD_READERSTATEW, DWORD)
Definition: stubs.c:272
LONG WINAPI SCardForgetReaderW(SCARDCONTEXT, LPCWSTR)
Definition: stubs.c:140
LONG WINAPI SCardLocateCardsA(SCARDCONTEXT, LPCSTR, LPSCARD_READERSTATEA, DWORD)
Definition: stubs.c:442
LONG WINAPI SCardIntroduceReaderGroupA(SCARDCONTEXT, LPCSTR)
Definition: stubs.c:348
LONG WINAPI SCardIntroduceReaderA(SCARDCONTEXT, LPCSTR, LPCSTR)
Definition: stubs.c:322
LONG WINAPI SCardReleaseContext(SCARDCONTEXT)
Definition: winscard.c:106
struct _SCARD_ATRMASK * LPSCARD_ATRMASK
LONG WINAPI SCardIntroduceReaderW(SCARDCONTEXT, LPCWSTR, LPCWSTR)
Definition: stubs.c:335
LONG WINAPI SCardGetCardTypeProviderNameA(SCARDCONTEXT, LPCSTR, DWORD, LPSTR, LPDWORD)
Definition: stubs.c:202
ULONG_PTR SCARDCONTEXT
Definition: winscard.h:37
LONG WINAPI SCardGetCardTypeProviderNameW(SCARDCONTEXT, LPCWSTR, DWORD, LPWSTR, LPDWORD)
Definition: stubs.c:217
ULONG_PTR SCARDHANDLE
Definition: winscard.h:38
const BYTE * LPCBYTE
Definition: winscard.h:34
LONG WINAPI SCardListReadersA(SCARDCONTEXT, LPCSTR, LPSTR, LPDWORD)
LONG WINAPI SCardListCardsA(SCARDCONTEXT, LPCBYTE, LPCGUID, DWORD, LPSTR, LPDWORD)
Definition: winscard.c:99
LONG WINAPI SCardTransmit(SCARDHANDLE, LPCSCARD_IO_REQUEST, LPCBYTE, DWORD, LPSCARD_IO_REQUEST, LPBYTE, LPDWORD)
Definition: stubs.c:598
LONG WINAPI SCardListInterfacesA(SCARDCONTEXT, LPCSTR, LPGUID, LPDWORD)
Definition: stubs.c:388
LONG WINAPI SCardEndTransaction(SCARDHANDLE, DWORD)
Definition: stubs.c:92
LONG WINAPI SCardIsValidContext(SCARDCONTEXT)
Definition: winscard.c:92
ULONG_PTR * PSCARDCONTEXT
Definition: winscard.h:37
ULONG_PTR * LPSCARDCONTEXT
Definition: winscard.h:37
LONG WINAPI SCardGetStatusChangeA(SCARDCONTEXT, DWORD, LPSCARD_READERSTATEA, DWORD)
Definition: stubs.c:258
LONG WINAPI SCardIntroduceCardTypeW(SCARDCONTEXT, LPCWSTR, LPCGUID, LPCGUID, DWORD, LPCBYTE, LPCBYTE, DWORD)
Definition: stubs.c:304
LONG WINAPI SCardState(SCARDHANDLE, LPDWORD, LPDWORD, LPBYTE, LPDWORD)
Definition: stubs.c:583
LONG WINAPI SCardBeginTransaction(SCARDHANDLE)
Definition: stubs.c:20
LONG WINAPI SCardSetAttrib(SCARDHANDLE, DWORD, LPCBYTE, DWORD)
Definition: stubs.c:541
LONG WINAPI SCardCancel(SCARDCONTEXT)
Definition: winscard.c:144
HANDLE WINAPI SCardAccessStartedEvent(void)
Definition: winscard.c:55
LONG WINAPI SCardDisconnect(SCARDHANDLE, DWORD)
Definition: stubs.c:80
LONG WINAPI SCardListReadersW(SCARDCONTEXT, LPCWSTR, LPWSTR, LPDWORD)
struct SCARD_READERSTATEW * PSCARD_READERSTATEW
LONG WINAPI SCardForgetCardTypeW(SCARDCONTEXT, LPCWSTR)
Definition: stubs.c:116
LONG WINAPI SCardForgetCardTypeA(SCARDCONTEXT, LPCSTR)
Definition: stubs.c:104
LONG WINAPI SCardStatusW(SCARDHANDLE, LPWSTR, LPDWORD, LPDWORD, LPDWORD, LPBYTE, LPDWORD)
Definition: winscard.c:120
LONG WINAPI SCardListInterfacesW(SCARDCONTEXT, LPCWSTR, LPGUID, LPDWORD)
Definition: stubs.c:402
LONG WINAPI SCardRemoveReaderFromGroupW(SCARDCONTEXT, LPCWSTR, LPCWSTR)
Definition: stubs.c:528
LONG WINAPI SCardLocateCardsByATRA(SCARDCONTEXT, LPSCARD_ATRMASK, DWORD, LPSCARD_READERSTATEA, DWORD)
Definition: stubs.c:470
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193