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.

110 lines
1.6 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. #include <winver.h>
  4. static
  5. BOOL
  6. APIENTRY
  7. GetFileVersionInfoA(
  8. LPCSTR lptstrFilename,
  9. DWORD dwHandle,
  10. DWORD dwLen,
  11. LPVOID lpData
  12. )
  13. {
  14. return FALSE;
  15. }
  16. static
  17. DWORD
  18. APIENTRY
  19. GetFileVersionInfoSizeA(
  20. LPCSTR lptstrFilename,
  21. LPDWORD lpdwHandle
  22. )
  23. {
  24. return 0;
  25. }
  26. static
  27. DWORD
  28. APIENTRY
  29. GetFileVersionInfoSizeW(
  30. LPCWSTR lptstrFilename,
  31. LPDWORD lpdwHandle
  32. )
  33. {
  34. return 0;
  35. }
  36. static
  37. BOOL
  38. APIENTRY
  39. GetFileVersionInfoW(
  40. LPCWSTR lptstrFilename,
  41. DWORD dwHandle,
  42. DWORD dwLen,
  43. LPVOID lpData
  44. )
  45. {
  46. return FALSE;
  47. }
  48. static
  49. BOOL
  50. APIENTRY
  51. VerQueryValueA(
  52. const LPVOID pBlock,
  53. LPSTR lpSubBlock,
  54. LPVOID * lplpBuffer,
  55. PUINT puLen
  56. )
  57. {
  58. return FALSE;
  59. }
  60. static
  61. BOOL
  62. APIENTRY
  63. VerQueryValueW(
  64. const LPVOID pBlock,
  65. LPWSTR lpSubBlock,
  66. LPVOID * lplpBuffer,
  67. PUINT puLen
  68. )
  69. {
  70. return FALSE;
  71. }
  72. static
  73. BOOL
  74. APIENTRY
  75. VerQueryValueIndexW(
  76. const void *pBlock,
  77. LPTSTR lpSubBlock,
  78. DWORD dwIndex,
  79. void **ppBuffer,
  80. void **ppValue,
  81. PUINT puLen
  82. )
  83. {
  84. return FALSE;
  85. }
  86. //
  87. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  88. //
  89. DEFINE_PROCNAME_ENTRIES(version)
  90. {
  91. DLPENTRY(GetFileVersionInfoA)
  92. DLPENTRY(GetFileVersionInfoSizeA)
  93. DLPENTRY(GetFileVersionInfoSizeW)
  94. DLPENTRY(GetFileVersionInfoW)
  95. DLPENTRY(VerQueryValueA)
  96. DLPENTRY(VerQueryValueIndexW)
  97. DLPENTRY(VerQueryValueW)
  98. };
  99. DEFINE_PROCNAME_MAP(version)