ReactOS  0.4.14-dev-1036-g3c5b10f
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  LPCSTR szReader,
33  DWORD dwShareMode,
34  DWORD dwPreferredProtocols,
35  LPSCARDHANDLE phCard,
36  LPDWORD pdwActiveProtocol)
37 {
39  return SCARD_F_UNKNOWN_ERROR;
40 }
41 
42 /*
43  * @unimplemented
44  */
45 LONG
46 WINAPI
48  LPCWSTR szReader,
49  DWORD dwShareMode,
50  DWORD dwPreferredProtocols,
51  LPSCARDHANDLE phCard,
52  LPDWORD pdwActiveProtocol)
53 {
55  return SCARD_F_UNKNOWN_ERROR;
56 }
57 
58 /*
59  * @unimplemented
60  */
61 LONG
62 WINAPI
64  DWORD dwControlCode,
65  LPCVOID lpInBuffer,
66  DWORD nInBufferSize,
67  LPVOID lpOutBuffer,
68  DWORD nOutBufferSize,
70 {
72  return SCARD_F_UNKNOWN_ERROR;
73 }
74 
75 /*
76  * @unimplemented
77  */
78 LONG
79 WINAPI
81  DWORD dwDisposition)
82 {
84  return SCARD_F_UNKNOWN_ERROR;
85 }
86 
87 /*
88  * @unimplemented
89  */
90 LONG
91 WINAPI
93  DWORD dwDisposition)
94 {
96  return SCARD_F_UNKNOWN_ERROR;
97 }
98 
99 /*
100  * @unimplemented
101  */
102 LONG
103 WINAPI
106 {
108  return SCARD_F_UNKNOWN_ERROR;
109 }
110 
111 /*
112  * @unimplemented
113  */
114 LONG
115 WINAPI
118 {
120  return SCARD_F_UNKNOWN_ERROR;
121 }
122 
123 /*
124  * @unimplemented
125  */
126 LONG
127 WINAPI
129  LPCSTR szReaderName)
130 {
132  return SCARD_F_UNKNOWN_ERROR;
133 }
134 
135 /*
136  * @unimplemented
137  */
138 LONG
139 WINAPI
141  LPCWSTR szReaderName)
142 {
144  return SCARD_F_UNKNOWN_ERROR;
145 }
146 
147 /*
148  * @unimplemented
149  */
150 LONG
151 WINAPI
153  LPCSTR szGroupName)
154 {
156  return SCARD_F_UNKNOWN_ERROR;
157 }
158 
159 /*
160  * @unimplemented
161  */
162 LONG
163 WINAPI
165  LPCWSTR szGroupName)
166 {
168  return SCARD_F_UNKNOWN_ERROR;
169 }
170 
171 /*
172  * @unimplemented
173  */
174 LONG
175 WINAPI
177  LPCVOID pvMem)
178 {
180  return SCARD_F_UNKNOWN_ERROR;
181 }
182 
183 /*
184  * @unimplemented
185  */
186 LONG
187 WINAPI
189  DWORD dwAttrId,
190  LPBYTE pbAttr,
191  LPDWORD pcbAttrLen)
192 {
194  return SCARD_F_UNKNOWN_ERROR;
195 }
196 
197 /*
198  * @unimplemented
199  */
200 LONG
201 WINAPI
204  DWORD dwProviderId,
206  LPDWORD pcchProvider)
207 {
209  return SCARD_F_UNKNOWN_ERROR;
210 }
211 
212 /*
213  * @unimplemented
214  */
215 LONG
216 WINAPI
219  DWORD dwProviderId,
221  LPDWORD pcchProvider)
222 {
224  return SCARD_F_UNKNOWN_ERROR;
225 }
226 
227 /*
228  * @unimplemented
229  */
230 LONG
231 WINAPI
233  LPCSTR szCard,
234  LPGUID pguidProviderId)
235 {
237  return SCARD_F_UNKNOWN_ERROR;
238 }
239 
240 /*
241  * @unimplemented
242  */
243 LONG
244 WINAPI
246  LPCWSTR szCard,
247  LPGUID pguidProviderId)
248 {
250  return SCARD_F_UNKNOWN_ERROR;
251 }
252 
253 /*
254  * @unimplemented
255  */
256 LONG
257 WINAPI
260  LPSCARD_READERSTATEA rgReaderState,
261  DWORD cReaders)
262 {
264  return SCARD_F_UNKNOWN_ERROR;
265 }
266 
267 /*
268  * @unimplemented
269  */
270 LONG
271 WINAPI
274  LPSCARD_READERSTATEW rgReaderState,
275  DWORD cReaders)
276 {
278  return SCARD_F_UNKNOWN_ERROR;
279 }
280 
281 /*
282  * @unimplemented
283  */
284 LONG
285 WINAPI
288  LPCGUID pguidPrimaryProvider,
289  LPCGUID rgguidInterfaces,
290  DWORD dwInterfaceCount,
291  LPCBYTE pbAtr,
292  LPCBYTE pbAtrMask,
293  DWORD cbAtrLen)
294 {
296  return SCARD_F_UNKNOWN_ERROR;
297 }
298 
299 /*
300  * @unimplemented
301  */
302 LONG
303 WINAPI
306  LPCGUID pguidPrimaryProvider,
307  LPCGUID rgguidInterfaces,
308  DWORD dwInterfaceCount,
309  LPCBYTE pbAtr,
310  LPCBYTE pbAtrMask,
311  DWORD cbAtrLen)
312 {
314  return SCARD_F_UNKNOWN_ERROR;
315 }
316 
317 /*
318  * @unimplemented
319  */
320 LONG
321 WINAPI
323  LPCSTR szReaderName,
325 {
327  return SCARD_F_UNKNOWN_ERROR;
328 }
329 
330 /*
331  * @unimplemented
332  */
333 LONG
334 WINAPI
336  LPCWSTR szReaderName,
338 {
340  return SCARD_F_UNKNOWN_ERROR;
341 }
342 
343 /*
344  * @unimplemented
345  */
346 LONG
347 WINAPI
349  LPCSTR szGroupName)
350 {
352  return SCARD_F_UNKNOWN_ERROR;
353 }
354 
355 /*
356  * @unimplemented
357  */
358 LONG
359 WINAPI
361  LPCWSTR szGroupName)
362 {
364  return SCARD_F_UNKNOWN_ERROR;
365 }
366 
367 /*
368  * @unimplemented
369  */
370 LONG
371 WINAPI
373  LPCBYTE pbAtr,
374  LPCGUID rgguidInterface,
375  DWORD cguidInterfaceCount,
376  LPWSTR mszCards,
377  LPDWORD pcchCards)
378 {
380  return SCARD_F_UNKNOWN_ERROR;
381 }
382 
383 /*
384  * @unimplemented
385  */
386 LONG
387 WINAPI
389  LPCSTR szCard,
390  LPGUID pguidInterfaces,
391  LPDWORD pcguidInteraces)
392 {
394  return SCARD_F_UNKNOWN_ERROR;
395 }
396 
397 /*
398  * @unimplemented
399  */
400 LONG
401 WINAPI
403  LPCWSTR szCard,
404  LPGUID pguidInterfaces,
405  LPDWORD pcguidInteraces)
406 {
408  return SCARD_F_UNKNOWN_ERROR;
409 }
410 
411 /*
412  * @unimplemented
413  */
414 LONG
415 WINAPI
417  LPSTR mszGroups,
418  LPDWORD pcchGroups)
419 {
421  return SCARD_F_UNKNOWN_ERROR;
422 }
423 
424 /*
425  * @unimplemented
426  */
427 LONG
428 WINAPI
430  LPWSTR mszGroups,
431  LPDWORD pcchGroups)
432 {
434  return SCARD_F_UNKNOWN_ERROR;
435 }
436 
437 /*
438  * @unimplemented
439  */
440 LONG
441 WINAPI
443  LPCSTR mszCards,
444  LPSCARD_READERSTATEA rgReaderStates,
445  DWORD cReaders)
446 {
448  return SCARD_F_UNKNOWN_ERROR;
449 }
450 
451 /*
452  * @unimplemented
453  */
454 LONG
455 WINAPI
457  LPCWSTR mszCards,
458  LPSCARD_READERSTATEW rgReaderStates,
459  DWORD cReaders)
460 {
462  return SCARD_F_UNKNOWN_ERROR;
463 }
464 
465 /*
466  * @unimplemented
467  */
468 LONG
469 WINAPI
471  LPSCARD_ATRMASK rgAtrMasks,
472  DWORD cAtrs,
473  LPSCARD_READERSTATEA rgReaderStates,
474  DWORD cReaders)
475 {
477  return SCARD_F_UNKNOWN_ERROR;
478 }
479 
480 /*
481  * @unimplemented
482  */
483 LONG
484 WINAPI
486  LPSCARD_ATRMASK rgAtrMasks,
487  DWORD cAtrs,
488  LPSCARD_READERSTATEW rgReaderStates,
489  DWORD cReaders)
490 {
492  return SCARD_F_UNKNOWN_ERROR;
493 }
494 
495 /*
496  * @unimplemented
497  */
498 LONG
499 WINAPI
501  DWORD dwShareMode,
502  DWORD dwPreferredProtocols,
503  DWORD dwInitialization,
504  LPDWORD pdwActiveProtocol)
505 {
507  return SCARD_F_UNKNOWN_ERROR;
508 }
509 
510 /*
511  * @unimplemented
512  */
513 LONG
514 WINAPI
516  LPCSTR szReaderName,
517  LPCSTR szGroupname)
518 {
520  return SCARD_F_UNKNOWN_ERROR;
521 }
522 
523 /*
524  * @unimplemented
525  */
526 LONG
527 WINAPI
529  LPCWSTR szReaderName,
530  LPCWSTR szGroupname)
531 {
533  return SCARD_F_UNKNOWN_ERROR;
534 }
535 
536 /*
537  * @unimplemented
538  */
539 LONG
540 WINAPI
542  DWORD dwAttrId,
543  LPCBYTE pbAttr,
544  DWORD cbAttrLen)
545 {
547  return SCARD_F_UNKNOWN_ERROR;
548 }
549 
550 /*
551  * @unimplemented
552  */
553 LONG
554 WINAPI
557  DWORD dwProviderId,
559 {
561  return SCARD_F_UNKNOWN_ERROR;
562 }
563 
564 /*
565  * @unimplemented
566  */
567 LONG
568 WINAPI
571  DWORD dwProviderId,
573 {
575  return SCARD_F_UNKNOWN_ERROR;
576 }
577 
578 /*
579  * @unimplemented
580  */
581 LONG
582 WINAPI
584  LPDWORD pdwState,
585  LPDWORD pdwProtocol,
586  LPBYTE pbAtr,
587  LPDWORD pcbAtrlen)
588 {
590  return SCARD_F_UNKNOWN_ERROR;
591 }
592 
593 /*
594  * @unimplemented
595  */
596 LONG
597 WINAPI
599  LPCSCARD_IO_REQUEST pioSendPci,
600  LPCBYTE pbSendBuffer,
601  DWORD cbSendLength,
602  LPSCARD_IO_REQUEST pioRecvPci,
603  LPBYTE pbRecvBuffer,
604  LPDWORD pcbRecvLength)
605 {
607  return SCARD_F_UNKNOWN_ERROR;
608 }
LONG WINAPI SCardGetCardTypeProviderNameW(SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPWSTR szProvider, LPDWORD pcchProvider)
Definition: stubs.c:217
static const char * szProvider
Definition: rsaenh.c:36
LONG WINAPI SCardIntroduceReaderW(SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szDeviceName)
Definition: stubs.c:335
LONG WINAPI SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
Definition: stubs.c:80
LONG WINAPI SCardLocateCardsA(SCARDCONTEXT hContext, LPCSTR mszCards, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
Definition: stubs.c:442
LONG WINAPI SCardLocateCardsByATRA(SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
Definition: stubs.c:470
LONG WINAPI SCardEndTransaction(SCARDHANDLE hCard, DWORD dwDisposition)
Definition: stubs.c:92
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:416
LONG WINAPI SCardGetProviderIdW(SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidProviderId)
Definition: stubs.c:245
LONG WINAPI SCardGetStatusChangeA(SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEA rgReaderState, DWORD cReaders)
Definition: stubs.c:258
LONG WINAPI SCardGetProviderIdA(SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidProviderId)
Definition: stubs.c:232
LONG WINAPI SCardReconnect(SCARDHANDLE hCard, DWORD dwShareMode, DWORD dwPreferredProtocols, DWORD dwInitialization, LPDWORD pdwActiveProtocol)
Definition: stubs.c:500
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:372
LONG WINAPI SCardSetAttrib(SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLen)
Definition: stubs.c:541
LONG WINAPI SCardGetAttrib(SCARDHANDLE hCard, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen)
Definition: stubs.c:188
LONG WINAPI SCardGetStatusChangeW(SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEW rgReaderState, DWORD cReaders)
Definition: stubs.c:272
char * LPSTR
Definition: xmlstorage.h:182
LONG WINAPI SCardRemoveReaderFromGroupA(SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupname)
Definition: stubs.c:515
#define UNIMPLEMENTED
Definition: stubs.c:20
LONG WINAPI SCardSetCardTypeProviderNameA(SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPCSTR szProvider)
Definition: stubs.c:555
unsigned char * LPBYTE
Definition: typedefs.h:53
long LONG
Definition: pedump.c:60
LONG WINAPI SCardLocateCardsW(SCARDCONTEXT hContext, LPCWSTR mszCards, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
Definition: stubs.c:456
LONG WINAPI SCardForgetReaderGroupW(SCARDCONTEXT hContext, LPCWSTR szGroupName)
Definition: stubs.c:164
WINE_DEFAULT_DEBUG_CHANNEL(mapi)
LONG WINAPI SCardListReaderGroupsW(SCARDCONTEXT hContext, LPWSTR mszGroups, LPDWORD pcchGroups)
Definition: stubs.c:429
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:47
LONG WINAPI SCardForgetReaderGroupA(SCARDCONTEXT hContext, LPCSTR szGroupName)
Definition: stubs.c:152
LONG WINAPI SCardControl(SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned)
Definition: stubs.c:63
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:304
#define WINAPI
Definition: msvc.h:6
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:31
LONG WINAPI SCardListInterfacesA(SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInteraces)
Definition: stubs.c:388
LONG WINAPI SCardForgetCardTypeA(SCARDCONTEXT hContext, LPCSTR szCardName)
Definition: stubs.c:104
ULONG_PTR * LPSCARDHANDLE
Definition: winscard.h:38
LONG WINAPI SCardFreeMemory(SCARDCONTEXT hContext, LPCVOID pvMem)
Definition: stubs.c:176
static const WCHAR szDeviceName[]
Definition: provider.c:56
LONG WINAPI SCardSetCardTypeProviderNameW(SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPCWSTR szProvider)
Definition: stubs.c:569
_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:116
LONG WINAPI SCardIntroduceReaderGroupW(SCARDCONTEXT hContext, LPCWSTR szGroupName)
Definition: stubs.c:360
LONG WINAPI SCardIntroduceCardTypeA(SCARDCONTEXT hContext, LPCSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
Definition: stubs.c:286
LONG WINAPI SCardGetCardTypeProviderNameA(SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPSTR szProvider, LPDWORD pcchProvider)
Definition: stubs.c:202
LONG WINAPI SCardLocateCardsByATRW(SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
Definition: stubs.c:485
_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:128
uint32_t * LPDWORD
Definition: typedefs.h:58
LONG WINAPI SCardForgetReaderW(SCARDCONTEXT hContext, LPCWSTR szReaderName)
Definition: stubs.c:140
const BYTE * LPCBYTE
Definition: winscard.h:34
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:402
LONG WINAPI SCardIntroduceReaderGroupA(SCARDCONTEXT hContext, LPCSTR szGroupName)
Definition: stubs.c:348
LONG WINAPI SCardTransmit(SCARDHANDLE hCard, LPCSCARD_IO_REQUEST pioSendPci, LPCBYTE pbSendBuffer, DWORD cbSendLength, LPSCARD_IO_REQUEST pioRecvPci, LPBYTE pbRecvBuffer, LPDWORD pcbRecvLength)
Definition: stubs.c:598
LONG WINAPI SCardIntroduceReaderA(SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szDeviceName)
Definition: stubs.c:322
LONG WINAPI SCardState(SCARDHANDLE hCard, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrlen)
Definition: stubs.c:583
LONG WINAPI SCardRemoveReaderFromGroupW(SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupname)
Definition: stubs.c:528