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.

58 lines
1.8 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cmakver.h
  4. //
  5. // Module: CMSETUP.LIB
  6. //
  7. // Synopsis: Definition of the CmakVersion class.
  8. //
  9. // Copyright (c) 1998-1999 Microsoft Corporation
  10. //
  11. // Author: quintinb Created 09/14/98
  12. //
  13. //+----------------------------------------------------------------------------
  14. #ifndef __CMAKVER_H
  15. #define __CMAKVER_H
  16. #include <windows.h>
  17. #include <tchar.h>
  18. #include <stdlib.h>
  19. #include "pnpuverp.h"
  20. const int c_Cmak10Version = 613;
  21. const int c_Cmak121Version = 1886;
  22. const int c_CmakUnicodeAware = 2050;
  23. const int c_Win2kRTMBuildNumber = 2195;
  24. const DWORD c_dwCurrentCmakVersionNumber = ((HIBYTE(VER_PRODUCTVERSION_W) << c_iShiftAmount) + (LOBYTE(VER_PRODUCTVERSION_W)));
  25. const DWORD c_dwVersionSevenPointOne = (7 << c_iShiftAmount) + 1;
  26. const DWORD c_dwVersionSeven = (7 << c_iShiftAmount);
  27. const DWORD c_dwVersionSix = (6 << c_iShiftAmount);
  28. const DWORD c_dwCmak10BuildNumber = (c_Cmak10Version << c_iShiftAmount);
  29. const DWORD c_dwFirst121BuildNumber = ((c_Cmak121Version << c_iShiftAmount) + VER_PRODUCTBUILD_QFE);
  30. const DWORD c_dwFirstUnicodeBuildNumber = ((c_CmakUnicodeAware << c_iShiftAmount) + VER_PRODUCTBUILD_QFE);
  31. const DWORD c_dwWin2kRTMBuildNumber = ((c_Win2kRTMBuildNumber << c_iShiftAmount) + VER_PRODUCTBUILD_QFE);
  32. class CmakVersion : public CVersion
  33. {
  34. public: // Public Methods
  35. CmakVersion();
  36. ~CmakVersion();
  37. BOOL GetInstallLocation (LPTSTR szStr);
  38. BOOL Is10Cmak();
  39. BOOL Is11or12Cmak();
  40. BOOL Is121Cmak();
  41. BOOL Is122Cmak();
  42. BOOL Is13Cmak();
  43. DWORD GetNativeCmakLCID();
  44. private: // Member Variables
  45. //
  46. // this actually contains the install location path, C:\program files\cmak\cmak.exe
  47. //
  48. TCHAR m_szCmakPath[MAX_PATH+1];
  49. };
  50. #endif // __CMAKVER_H