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