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