Source code of Windows XP (NT5)
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.

152 lines
2.6 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #include <wincrypt.h>
  4. #include <mscat.h>
  5. static
  6. LONG
  7. WINAPI
  8. WinVerifyTrust (
  9. HWND hwnd,
  10. GUID *pgActionID,
  11. LPVOID pWVTData
  12. )
  13. {
  14. return E_UNEXPECTED;
  15. }
  16. static
  17. BOOL
  18. WINAPI
  19. CryptCATAdminAcquireContext(
  20. OUT HCATADMIN *phCatAdmin,
  21. IN const GUID *pgSubsystem,
  22. IN DWORD dwFlags)
  23. {
  24. SetLastError(ERROR_PROC_NOT_FOUND);
  25. return FALSE;
  26. }
  27. static
  28. HCATINFO
  29. WINAPI
  30. CryptCATAdminEnumCatalogFromHash(
  31. IN HCATADMIN hCatAdmin,
  32. IN BYTE *pbHash,
  33. IN DWORD cbHash,
  34. IN DWORD dwFlags,
  35. IN OUT HCATINFO *phPrevCatInfo)
  36. {
  37. SetLastError(ERROR_PROC_NOT_FOUND);
  38. return NULL;
  39. }
  40. static
  41. BOOL
  42. WINAPI
  43. CryptCATAdminCalcHashFromFileHandle(
  44. IN HANDLE hFile,
  45. IN OUT DWORD *pcbHash,
  46. OUT OPTIONAL BYTE *pbHash,
  47. IN DWORD dwFlags)
  48. {
  49. SetLastError(ERROR_PROC_NOT_FOUND);
  50. return FALSE;
  51. }
  52. static
  53. HCATINFO
  54. WINAPI
  55. CryptCATAdminAddCatalog(
  56. IN HCATADMIN hCatAdmin,
  57. IN WCHAR *pwszCatalogFile,
  58. IN OPTIONAL WCHAR *pwszSelectBaseName,
  59. IN DWORD dwFlags)
  60. {
  61. SetLastError(ERROR_PROC_NOT_FOUND);
  62. return NULL;
  63. }
  64. static
  65. BOOL
  66. WINAPI
  67. CryptCATCatalogInfoFromContext(
  68. IN HCATINFO hCatInfo,
  69. IN OUT CATALOG_INFO *psCatInfo,
  70. IN DWORD dwFlags)
  71. {
  72. SetLastError(ERROR_PROC_NOT_FOUND);
  73. return FALSE;
  74. }
  75. static
  76. BOOL
  77. WINAPI
  78. CryptCATAdminReleaseContext(
  79. IN HCATADMIN hCatAdmin,
  80. IN DWORD dwFlags)
  81. {
  82. SetLastError(ERROR_PROC_NOT_FOUND);
  83. return FALSE;
  84. }
  85. static
  86. BOOL
  87. WINAPI
  88. CryptCATAdminReleaseCatalogContext(
  89. IN HCATADMIN hCatAdmin,
  90. IN HCATINFO hCatInfo,
  91. IN DWORD dwFlags)
  92. {
  93. SetLastError(ERROR_PROC_NOT_FOUND);
  94. return FALSE;
  95. }
  96. static
  97. BOOL
  98. WINAPI
  99. CryptCATAdminRemoveCatalog(
  100. IN HCATADMIN hCatAdmin,
  101. IN LPCWSTR pwszCatalogFile,
  102. IN DWORD dwFlags)
  103. {
  104. SetLastError(ERROR_PROC_NOT_FOUND);
  105. return FALSE;
  106. }
  107. static
  108. BOOL
  109. WINAPI
  110. CryptCATAdminResolveCatalogPath(
  111. IN HCATADMIN hCatAdmin,
  112. IN WCHAR *pwszCatalogFile,
  113. IN OUT CATALOG_INFO *psCatInfo,
  114. IN DWORD dwFlags)
  115. {
  116. SetLastError(ERROR_PROC_NOT_FOUND);
  117. return FALSE;
  118. }
  119. //
  120. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  121. //
  122. DEFINE_PROCNAME_ENTRIES(wintrust)
  123. {
  124. DLPENTRY(CryptCATAdminAcquireContext)
  125. DLPENTRY(CryptCATAdminAddCatalog)
  126. DLPENTRY(CryptCATAdminCalcHashFromFileHandle)
  127. DLPENTRY(CryptCATAdminEnumCatalogFromHash)
  128. DLPENTRY(CryptCATAdminReleaseCatalogContext)
  129. DLPENTRY(CryptCATAdminReleaseContext)
  130. DLPENTRY(CryptCATAdminRemoveCatalog)
  131. DLPENTRY(CryptCATAdminResolveCatalogPath)
  132. DLPENTRY(CryptCATCatalogInfoFromContext)
  133. DLPENTRY(WinVerifyTrust)
  134. };
  135. DEFINE_PROCNAME_MAP(wintrust)