Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
2.4 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define WINSCARDAPI
  4. #include <winscard.h>
  5. static
  6. WINSCARDAPI LONG WINAPI
  7. SCardCancel(
  8. IN SCARDCONTEXT hContext)
  9. {
  10. return ERROR_PROC_NOT_FOUND;
  11. }
  12. static
  13. WINSCARDAPI
  14. LONG
  15. WINAPI
  16. SCardEstablishContext(
  17. IN DWORD dwScope,
  18. IN LPCVOID pvReserved1,
  19. IN LPCVOID pvReserved2,
  20. OUT LPSCARDCONTEXT phContext)
  21. {
  22. return ERROR_PROC_NOT_FOUND;
  23. }
  24. static
  25. WINSCARDAPI LONG WINAPI
  26. SCardFreeMemory(
  27. IN SCARDCONTEXT hContext,
  28. IN LPCVOID pvMem)
  29. {
  30. return ERROR_PROC_NOT_FOUND;
  31. }
  32. static
  33. WINSCARDAPI LONG WINAPI
  34. SCardGetCardTypeProviderNameW(
  35. IN SCARDCONTEXT hContext,
  36. IN LPCWSTR szCardName,
  37. IN DWORD dwProviderId,
  38. OUT LPWSTR szProvider,
  39. IN OUT LPDWORD pcchProvider)
  40. {
  41. return ERROR_PROC_NOT_FOUND;
  42. }
  43. static
  44. WINSCARDAPI LONG WINAPI
  45. SCardGetStatusChangeW(
  46. IN SCARDCONTEXT hContext,
  47. IN DWORD dwTimeout,
  48. IN OUT LPSCARD_READERSTATE_W rgReaderStates,
  49. IN DWORD cReaders)
  50. {
  51. return ERROR_PROC_NOT_FOUND;
  52. }
  53. static
  54. WINSCARDAPI LONG WINAPI
  55. SCardListCardsW(
  56. IN SCARDCONTEXT hContext,
  57. IN LPCBYTE pbAtr,
  58. IN LPCGUID rgquidInterfaces,
  59. IN DWORD cguidInterfaceCount,
  60. OUT LPWSTR mszCards,
  61. IN OUT LPDWORD pcchCards)
  62. {
  63. return ERROR_PROC_NOT_FOUND;
  64. }
  65. static
  66. LONG
  67. WINAPI
  68. SCardListReadersA(
  69. IN SCARDCONTEXT hContext,
  70. IN LPCSTR mszGroups,
  71. OUT LPSTR mszReaders,
  72. IN OUT LPDWORD pcchReaders)
  73. {
  74. return ERROR_PROC_NOT_FOUND;
  75. }
  76. static
  77. WINSCARDAPI LONG WINAPI
  78. SCardListReadersW(
  79. IN SCARDCONTEXT hContext,
  80. IN LPCWSTR mszGroups,
  81. OUT LPWSTR mszReaders,
  82. IN OUT LPDWORD pcchReaders)
  83. {
  84. return ERROR_PROC_NOT_FOUND;
  85. }
  86. static
  87. WINSCARDAPI
  88. LONG
  89. WINAPI
  90. SCardReleaseContext(
  91. IN SCARDCONTEXT hContext)
  92. {
  93. return ERROR_PROC_NOT_FOUND;
  94. }
  95. //
  96. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  97. //
  98. DEFINE_PROCNAME_ENTRIES(winscard)
  99. {
  100. DLPENTRY(SCardCancel)
  101. DLPENTRY(SCardEstablishContext)
  102. DLPENTRY(SCardFreeMemory)
  103. DLPENTRY(SCardGetCardTypeProviderNameW)
  104. DLPENTRY(SCardGetStatusChangeW)
  105. DLPENTRY(SCardListCardsW)
  106. DLPENTRY(SCardListReadersA)
  107. DLPENTRY(SCardListReadersW)
  108. DLPENTRY(SCardReleaseContext)
  109. };
  110. DEFINE_PROCNAME_MAP(winscard)