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.

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