ReactOS  0.4.14-dev-337-gf981a68
stubs.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS SmartCard API
3  * FILE: dll/win32/winscard/stubs.c
4  * PURPOSE: ReactOS SmartCard API
5  * PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
6  *
7  * UPDATE HISTORY:
8  * 11/07/2004 Created
9  */
10 
11 #include "precomp.h"
12 
14 
15 /*
16  * @unimplemented
17  */
18 LONG
19 WINAPI
21 {
23  return SCARD_F_UNKNOWN_ERROR;
24 }
25 
26 /*
27  * @unimplemented
28  */
29 LONG
30 WINAPI
32 {
34  return SCARD_F_UNKNOWN_ERROR;
35 }
36 
37 /*
38  * @unimplemented
39  */
40 LONG
41 WINAPI
43  LPCSTR szReader,
44  DWORD dwShareMode,
45  DWORD dwPreferredProtocols,
46  LPSCARDHANDLE phCard,
47  LPDWORD pdwActiveProtocol)
48 {
50  return SCARD_F_UNKNOWN_ERROR;
51 }
52 
53 /*
54  * @unimplemented
55  */
56 LONG
57 WINAPI
59  LPCWSTR szReader,
60  DWORD dwShareMode,
61  DWORD dwPreferredProtocols,
62  LPSCARDHANDLE phCard,
63  LPDWORD pdwActiveProtocol)
64 {
66  return SCARD_F_UNKNOWN_ERROR;
67 }
68 
69 /*
70  * @unimplemented
71  */
72 LONG
73 WINAPI
75  DWORD dwControlCode,
76  LPCVOID lpInBuffer,
77  DWORD nInBufferSize,
78  LPVOID lpOutBuffer,
79  DWORD nOutBufferSize,
81 {
83  return SCARD_F_UNKNOWN_ERROR;
84 }
85 
86 /*
87  * @unimplemented
88  */
89 LONG
90 WINAPI
92  DWORD dwDisposition)
93 {
95  return SCARD_F_UNKNOWN_ERROR;
96 }
97 
98 /*
99  * @unimplemented
100  */
101 LONG
102 WINAPI
104  DWORD dwDisposition)
105 {
107  return SCARD_F_UNKNOWN_ERROR;
108 }
109 
110 /*
111  * @unimplemented
112  */
113 LONG
114 WINAPI
117 {
119  return SCARD_F_UNKNOWN_ERROR;
120 }
121 
122 /*
123  * @unimplemented
124  */
125 LONG
126 WINAPI
129 {
131  return SCARD_F_UNKNOWN_ERROR;
132 }
133 
134 /*
135  * @unimplemented
136  */
137 LONG
138 WINAPI
140  LPCSTR szReaderName)
141 {
143  return SCARD_F_UNKNOWN_ERROR;
144 }
145 
146 /*
147  * @unimplemented
148  */
149 LONG
150 WINAPI
152  LPCWSTR szReaderName)
153 {
155  return SCARD_F_UNKNOWN_ERROR;
156 }
157 
158 /*
159  * @unimplemented
160  */
161 LONG
162 WINAPI
164  LPCSTR szGroupName)
165 {
167  return SCARD_F_UNKNOWN_ERROR;
168 }
169 
170 /*
171  * @unimplemented
172  */
173 LONG
174 WINAPI
176  LPCWSTR szGroupName)
177 {
179  return SCARD_F_UNKNOWN_ERROR;
180 }
181 
182 /*
183  * @unimplemented
184  */
185 LONG
186 WINAPI
188  LPCVOID pvMem)
189 {
191  return SCARD_F_UNKNOWN_ERROR;
192 }
193 
194 /*
195  * @unimplemented
196  */
197 LONG
198 WINAPI
200  DWORD dwAttrId,
201  LPBYTE pbAttr,
202  LPDWORD pcbAttrLen)
203 {
205  return SCARD_F_UNKNOWN_ERROR;
206 }
207 
208 /*
209  * @unimplemented
210  */
211 LONG
212 WINAPI
215  DWORD dwProviderId,
217  LPDWORD pcchProvider)
218 {
220  return SCARD_F_UNKNOWN_ERROR;
221 }
222 
223 /*
224  * @unimplemented
225  */
226 LONG
227 WINAPI
230  DWORD dwProviderId,
232  LPDWORD pcchProvider)
233 {
235  return SCARD_F_UNKNOWN_ERROR;
236 }
237 
238 /*
239  * @unimplemented
240  */
241 LONG
242 WINAPI
244  LPCSTR szCard,
245  LPGUID pguidProviderId)
246 {
248  return SCARD_F_UNKNOWN_ERROR;
249 }
250 
251 /*
252  * @unimplemented
253  */
254 LONG
255 WINAPI
257  LPCWSTR szCard,
258  LPGUID pguidProviderId)
259 {
261  return SCARD_F_UNKNOWN_ERROR;
262 }
263 
264 /*
265  * @unimplemented
266  */
267 LONG
268 WINAPI
271  LPSCARD_READERSTATEA rgReaderState,
272  DWORD cReaders)
273 {
275  return SCARD_F_UNKNOWN_ERROR;
276 }
277 
278 /*
279  * @unimplemented
280  */
281 LONG
282 WINAPI
285  LPSCARD_READERSTATEW rgReaderState,
286  DWORD cReaders)
287 {
289  return SCARD_F_UNKNOWN_ERROR;
290 }
291 
292 /*
293  * @unimplemented
294  */
295 LONG
296 WINAPI
299  LPCGUID pguidPrimaryProvider,
300  LPCGUID rgguidInterfaces,
301  DWORD dwInterfaceCount,
302  LPCBYTE pbAtr,
303  LPCBYTE pbAtrMask,
304  DWORD cbAtrLen)
305 {
307  return SCARD_F_UNKNOWN_ERROR;
308 }
309 
310 /*
311  * @unimplemented
312  */
313 LONG
314 WINAPI
317  LPCGUID pguidPrimaryProvider,
318  LPCGUID rgguidInterfaces,
319  DWORD dwInterfaceCount,
320  LPCBYTE pbAtr,
321  LPCBYTE pbAtrMask,
322  DWORD cbAtrLen)
323 {
325  return SCARD_F_UNKNOWN_ERROR;
326 }
327 
328 /*
329  * @unimplemented
330  */
331 LONG
332 WINAPI
334  LPCSTR szReaderName,
336 {
338  return SCARD_F_UNKNOWN_ERROR;
339 }
340 
341 /*
342  * @unimplemented
343  */
344 LONG
345 WINAPI
347  LPCWSTR szReaderName,
349 {
351  return SCARD_F_UNKNOWN_ERROR;
352 }
353 
354 /*
355  * @unimplemented
356  */
357 LONG
358 WINAPI
360  LPCSTR szGroupName)
361 {
363  return SCARD_F_UNKNOWN_ERROR;
364 }
365 
366 /*
367  * @unimplemented
368  */
369 LONG
370 WINAPI
372  LPCWSTR szGroupName)
373 {
375  return SCARD_F_UNKNOWN_ERROR;
376 }
377 
378 /*
379  * @unimplemented
380  */
381 LONG
382 WINAPI
384  LPCBYTE pbAtr,
385  LPCGUID rgguidInterface,
386  DWORD cguidInterfaceCount,
387  LPWSTR mszCards,
388  LPDWORD pcchCards)
389 {
391  return SCARD_F_UNKNOWN_ERROR;
392 }
393 
394 /*
395  * @unimplemented
396  */
397 LONG
398 WINAPI
400  LPCSTR szCard,
401  LPGUID pguidInterfaces,
402  LPDWORD pcguidInteraces)
403 {
405  return SCARD_F_UNKNOWN_ERROR;
406 }
407 
408 /*
409  * @unimplemented
410  */
411 LONG
412 WINAPI
414  LPCWSTR szCard,
415  LPGUID pguidInterfaces,
416  LPDWORD pcguidInteraces)
417 {
419  return SCARD_F_UNKNOWN_ERROR;
420 }
421 
422 /*
423  * @unimplemented
424  */
425 LONG
426 WINAPI
428  LPSTR mszGroups,
429  LPDWORD pcchGroups)
430 {
432  return SCARD_F_UNKNOWN_ERROR;
433 }
434 
435 /*
436  * @unimplemented
437  */
438 LONG
439 WINAPI
441  LPWSTR mszGroups,
442  LPDWORD pcchGroups)
443 {
445  return SCARD_F_UNKNOWN_ERROR;
446 }
447 
448 /*
449  * @unimplemented
450  */
451 LONG
452 WINAPI
454  LPCSTR mszCards,
455  LPSCARD_READERSTATEA rgReaderStates,
456  DWORD cReaders)
457 {
459  return SCARD_F_UNKNOWN_ERROR;
460 }
461 
462 /*
463  * @unimplemented
464  */
465 LONG
466 WINAPI
468  LPCWSTR mszCards,
469  LPSCARD_READERSTATEW rgReaderStates,
470  DWORD cReaders)
471 {
473  return SCARD_F_UNKNOWN_ERROR;
474 }
475 
476 /*
477  * @unimplemented
478  */
479 LONG
480 WINAPI
482  LPSCARD_ATRMASK rgAtrMasks,
483  DWORD cAtrs,
484  LPSCARD_READERSTATEA rgReaderStates,
485  DWORD cReaders)
486 {
488  return SCARD_F_UNKNOWN_ERROR;
489 }
490 
491 /*
492  * @unimplemented
493  */
494 LONG
495 WINAPI
497  LPSCARD_ATRMASK rgAtrMasks,
498  DWORD cAtrs,
499  LPSCARD_READERSTATEW rgReaderStates,
500  DWORD cReaders)
501 {
503  return SCARD_F_UNKNOWN_ERROR;
504 }
505 
506 /*
507  * @unimplemented
508  */
509 LONG
510 WINAPI
512  DWORD dwShareMode,
513  DWORD dwPreferredProtocols,
514  DWORD dwInitialization,
515  LPDWORD pdwActiveProtocol)
516 {
518  return SCARD_F_UNKNOWN_ERROR;
519 }
520 
521 /*
522  * @unimplemented
523  */
524 LONG
525 WINAPI
527  LPCSTR szReaderName,
528  LPCSTR szGroupname)
529 {
531  return SCARD_F_UNKNOWN_ERROR;
532 }
533 
534 /*
535  * @unimplemented
536  */
537 LONG
538 WINAPI
540  LPCWSTR szReaderName,
541  LPCWSTR szGroupname)
542 {
544  return SCARD_F_UNKNOWN_ERROR;
545 }
546 
547 /*
548  * @unimplemented
549  */
550 LONG
551 WINAPI
553  DWORD dwAttrId,
554  LPCBYTE pbAttr,
555  DWORD cbAttrLen)
556 {
558  return SCARD_F_UNKNOWN_ERROR;
559 }
560 
561 /*
562  * @unimplemented
563  */
564 LONG
565 WINAPI
568  DWORD dwProviderId,
570 {
572  return SCARD_F_UNKNOWN_ERROR;
573 }
574 
575 /*
576  * @unimplemented
577  */
578 LONG
579 WINAPI
582  DWORD dwProviderId,
584 {
586  return SCARD_F_UNKNOWN_ERROR;
587 }
588 
589 /*
590  * @unimplemented
591  */
592 LONG
593 WINAPI
595  LPDWORD pdwState,
596  LPDWORD pdwProtocol,
597  LPBYTE pbAtr,
598  LPDWORD pcbAtrlen)
599 {
601  return SCARD_F_UNKNOWN_ERROR;
602 }
603 
604 /*
605  * @unimplemented
606  */
607 LONG
608 WINAPI
610  LPCSCARD_IO_REQUEST pioSendPci,
611  LPCBYTE pbSendBuffer,
612  DWORD cbSendLength,
613  LPSCARD_IO_REQUEST pioRecvPci,
614  LPBYTE pbRecvBuffer,
615  LPDWORD pcbRecvLength)
616 {
618  return SCARD_F_UNKNOWN_ERROR;
619 }
LONG WINAPI SCardGetCardTypeProviderNameW(SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPWSTR szProvider, LPDWORD pcchProvider)
Definition: stubs.c:228
static const char * szProvider
Definition: rsaenh.c:36
LONG WINAPI SCardIntroduceReaderW(SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szDeviceName)
Definition: stubs.c:346
LONG WINAPI SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
Definition: stubs.c:91
LONG WINAPI SCardLocateCardsA(SCARDCONTEXT hContext, LPCSTR mszCards, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
Definition: stubs.c:453
LONG WINAPI SCardLocateCardsByATRA(SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
Definition: stubs.c:481
LONG WINAPI SCardEndTransaction(SCARDHANDLE hCard, DWORD dwDisposition)
Definition: stubs.c:103
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
static TCHAR szCardName[]
Definition: cardwindow.cpp:37
LONG WINAPI SCardListReaderGroupsA(SCARDCONTEXT hContext, LPSTR mszGroups, LPDWORD pcchGroups)
Definition: stubs.c:427
LONG WINAPI SCardGetProviderIdW(SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidProviderId)
Definition: stubs.c:256
LONG WINAPI SCardGetStatusChangeA(SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEA rgReaderState, DWORD cReaders)
Definition: stubs.c:269
LONG WINAPI SCardGetProviderIdA(SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidProviderId)
Definition: stubs.c:243
LONG WINAPI SCardReconnect(SCARDHANDLE hCard, DWORD dwShareMode, DWORD dwPreferredProtocols, DWORD dwInitialization, LPDWORD pdwActiveProtocol)
Definition: stubs.c:511
ULONG_PTR SCARDCONTEXT
Definition: winscard.h:37
LONG WINAPI SCardListCardsW(SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgguidInterface, DWORD cguidInterfaceCount, LPWSTR mszCards, LPDWORD pcchCards)
Definition: stubs.c:383
LONG WINAPI SCardSetAttrib(SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLen)
Definition: stubs.c:552
LONG WINAPI SCardGetAttrib(SCARDHANDLE hCard, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen)
Definition: stubs.c:199
LONG WINAPI SCardGetStatusChangeW(SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEW rgReaderState, DWORD cReaders)
Definition: stubs.c:283
char * LPSTR
Definition: xmlstorage.h:182
LONG WINAPI SCardRemoveReaderFromGroupA(SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupname)
Definition: stubs.c:526
#define UNIMPLEMENTED
Definition: stubs.c:20
LONG WINAPI SCardSetCardTypeProviderNameA(SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPCSTR szProvider)
Definition: stubs.c:566
unsigned char * LPBYTE
Definition: typedefs.h:52
long LONG
Definition: pedump.c:60
LONG WINAPI SCardLocateCardsW(SCARDCONTEXT hContext, LPCWSTR mszCards, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
Definition: stubs.c:467
LONG WINAPI SCardForgetReaderGroupW(SCARDCONTEXT hContext, LPCWSTR szGroupName)
Definition: stubs.c:175
WINE_DEFAULT_DEBUG_CHANNEL(mapi)
LONG WINAPI SCardListReaderGroupsW(SCARDCONTEXT hContext, LPWSTR mszGroups, LPDWORD pcchGroups)
Definition: stubs.c:440
const char * LPCSTR
Definition: xmlstorage.h:183
LONG WINAPI SCardConnectW(SCARDCONTEXT hContext, LPCWSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)
Definition: stubs.c:58
LONG WINAPI SCardForgetReaderGroupA(SCARDCONTEXT hContext, LPCSTR szGroupName)
Definition: stubs.c:163
LONG WINAPI SCardControl(SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned)
Definition: stubs.c:74
ULONG_PTR SCARDHANDLE
Definition: winscard.h:38
#define SCARD_F_UNKNOWN_ERROR
Definition: scarderr.h:51
LONG WINAPI SCardIntroduceCardTypeW(SCARDCONTEXT hContext, LPCWSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
Definition: stubs.c:315
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG WINAPI SCardConnectA(SCARDCONTEXT hContext, LPCSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)
Definition: stubs.c:42
LONG WINAPI SCardListInterfacesA(SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInteraces)
Definition: stubs.c:399
LONG WINAPI SCardForgetCardTypeA(SCARDCONTEXT hContext, LPCSTR szCardName)
Definition: stubs.c:115
ULONG_PTR * LPSCARDHANDLE
Definition: winscard.h:38
LONG WINAPI SCardFreeMemory(SCARDCONTEXT hContext, LPCVOID pvMem)
Definition: stubs.c:187
static const WCHAR szDeviceName[]
Definition: provider.c:56
LONG WINAPI SCardSetCardTypeProviderNameW(SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPCWSTR szProvider)
Definition: stubs.c:580
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
Definition: wincrypt.h:6081
LONG WINAPI SCardForgetCardTypeW(SCARDCONTEXT hContext, LPCWSTR szCardName)
Definition: stubs.c:127
LONG WINAPI SCardIntroduceReaderGroupW(SCARDCONTEXT hContext, LPCWSTR szGroupName)
Definition: stubs.c:371
LONG WINAPI SCardIntroduceCardTypeA(SCARDCONTEXT hContext, LPCSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
Definition: stubs.c:297
LONG WINAPI SCardGetCardTypeProviderNameA(SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPSTR szProvider, LPDWORD pcchProvider)
Definition: stubs.c:213
LONG WINAPI SCardLocateCardsByATRW(SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
Definition: stubs.c:496
_In_ DWORD _In_ DWORD _In_ DWORD _Out_ LPDWORD lpBytesReturned
Definition: winddi.h:1704
CONST void * LPCVOID
Definition: windef.h:191
LONG WINAPI SCardForgetReaderA(SCARDCONTEXT hContext, LPCSTR szReaderName)
Definition: stubs.c:139
uint32_t * LPDWORD
Definition: typedefs.h:57
LONG WINAPI SCardForgetReaderW(SCARDCONTEXT hContext, LPCWSTR szReaderName)
Definition: stubs.c:151
const BYTE * LPCBYTE
Definition: winscard.h:34
LONG WINAPI SCardCancel(SCARDCONTEXT hContext)
Definition: stubs.c:31
LONG WINAPI SCardBeginTransaction(SCARDHANDLE hCard)
Definition: stubs.c:20
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG WINAPI SCardListInterfacesW(SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInteraces)
Definition: stubs.c:413
LONG WINAPI SCardIntroduceReaderGroupA(SCARDCONTEXT hContext, LPCSTR szGroupName)
Definition: stubs.c:359
LONG WINAPI SCardTransmit(SCARDHANDLE hCard, LPCSCARD_IO_REQUEST pioSendPci, LPCBYTE pbSendBuffer, DWORD cbSendLength, LPSCARD_IO_REQUEST pioRecvPci, LPBYTE pbRecvBuffer, LPDWORD pcbRecvLength)
Definition: stubs.c:609
LONG WINAPI SCardIntroduceReaderA(SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szDeviceName)
Definition: stubs.c:333
LONG WINAPI SCardState(SCARDHANDLE hCard, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrlen)
Definition: stubs.c:594
LONG WINAPI SCardRemoveReaderFromGroupW(SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupname)
Definition: stubs.c:539