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.

161 lines
2.7 KiB

  1. #include "windowspch.h"
  2. #pragma hdrstop
  3. #include <shimdb.h>
  4. static
  5. BOOL
  6. WINAPI
  7. ApphelpCheckExe(
  8. IN LPCWSTR lpApplicationName,
  9. IN BOOL bApphelpIfNecessary,
  10. IN BOOL bShimIfNecessary
  11. )
  12. {
  13. return TRUE;
  14. }
  15. static
  16. BOOL
  17. WINAPI
  18. ApphelpCheckShellObject(
  19. IN REFCLSID ObjectCLSID,
  20. IN BOOL bShimIfNecessary,
  21. OUT ULONGLONG* pullFlags
  22. )
  23. {
  24. if (pullFlags) *pullFlags = 0;
  25. return TRUE;
  26. }
  27. static
  28. BOOL
  29. WINAPI
  30. SdbGetStandardDatabaseGUID(
  31. IN DWORD dwDatabaseType,
  32. OUT GUID* pGuidDB
  33. )
  34. {
  35. return FALSE;
  36. }
  37. static
  38. HAPPHELPINFOCONTEXT
  39. WINAPI
  40. SdbOpenApphelpInformation(
  41. IN GUID* pguidDB,
  42. IN GUID* pguidID
  43. )
  44. {
  45. return NULL;
  46. }
  47. static
  48. BOOL
  49. WINAPI
  50. SdbCloseApphelpInformation(
  51. IN HAPPHELPINFOCONTEXT hctx
  52. )
  53. {
  54. return FALSE;
  55. }
  56. static
  57. DWORD
  58. WINAPI
  59. SdbQueryApphelpInformation(
  60. IN HAPPHELPINFOCONTEXT hctx,
  61. IN APPHELPINFORMATIONCLASS InfoClass,
  62. OUT LPVOID pBuffer, // may be NULL
  63. IN DWORD cbSize // may be 0 if pBuffer is NULL
  64. )
  65. {
  66. return 0;
  67. }
  68. DWORD
  69. SdbQueryData(
  70. IN HSDB hSDB, // database handle
  71. IN TAGREF trExe, // tagref of the matching exe
  72. IN LPCTSTR lpszDataName, // if this is null, will try to return all the policy names
  73. OUT LPDWORD lpdwDataType, // pointer to data type (REG_SZ, REG_BINARY, etc)
  74. OUT LPVOID lpBuffer, // buffer to fill with information
  75. IN OUT LPDWORD lpdwBufferSize // pointer to buffer size
  76. )
  77. {
  78. return ERROR_PROC_NOT_FOUND;
  79. }
  80. static
  81. HSDB
  82. SDBAPI
  83. SdbInitDatabase(
  84. IN DWORD dwFlags,
  85. IN LPCTSTR pszDatabasePath
  86. )
  87. {
  88. return NULL;
  89. }
  90. static
  91. VOID
  92. SDBAPI
  93. SdbReleaseDatabase(
  94. IN HSDB hSDB
  95. )
  96. {
  97. return;
  98. }
  99. static
  100. TAGREF
  101. SDBAPI
  102. SdbGetDatabaseMatch(
  103. IN HSDB hSDB,
  104. IN LPCTSTR szPath,
  105. IN HANDLE FileHandle OPTIONAL,
  106. IN LPVOID pImageBase OPTIONAL,
  107. IN DWORD dwImageSize OPTIONAL
  108. )
  109. {
  110. return TAGREF_NULL;
  111. }
  112. static
  113. BOOL
  114. SDBAPI
  115. SdbReadEntryInformation(
  116. IN HSDB hSDB,
  117. IN TAGREF trDriver,
  118. OUT PSDBENTRYINFO pEntryInfo
  119. )
  120. {
  121. return FALSE;
  122. }
  123. //
  124. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  125. //
  126. DEFINE_PROCNAME_ENTRIES(apphelp)
  127. {
  128. DLPENTRY(ApphelpCheckExe)
  129. DLPENTRY(ApphelpCheckShellObject)
  130. DLPENTRY(SdbCloseApphelpInformation)
  131. DLPENTRY(SdbGetDatabaseMatch)
  132. DLPENTRY(SdbGetStandardDatabaseGUID)
  133. DLPENTRY(SdbInitDatabase)
  134. DLPENTRY(SdbOpenApphelpInformation)
  135. DLPENTRY(SdbQueryApphelpInformation)
  136. DLPENTRY(SdbQueryData)
  137. DLPENTRY(SdbReadEntryInformation)
  138. DLPENTRY(SdbReleaseDatabase)
  139. };
  140. DEFINE_PROCNAME_MAP(apphelp)