verinfo.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifdef _VERINFO_H
  2. #error verinfo.h included twice
  3. #endif
  4. #define _VERINFO_H
  5. //-----------------------------------------------------------------------------
  6. // @doc
  7. // @module VERINFO.H - Declaration of VersionInfo class |
  8. //
  9. // Copyright <cp> 1995 Microsoft Corporation, All Rights Reserved
  10. //
  11. // Mark Snyder, Software Design Engineer
  12. // Microsoft Travel Products
  13. //
  14. #if defined(DEBUG) && defined(INLINE)
  15. #undef THIS_FILE
  16. static char BASED_CODE VERINFO_H[] = "verinfo.h";
  17. #define THIS_FILE VERINFO_H
  18. #endif
  19. //-----------------------------------------------------------------------------
  20. // @class The VersionInfo class contains the version info for all of the
  21. // modules needed under the current configuration.
  22. //
  23. class VersionInfo
  24. {
  25. protected: // @access Protected Members
  26. // @cmember Initializes all the values in the object. Called from both
  27. // constructors.
  28. void Initialize();
  29. public: // @access Public Members
  30. // @cmember Constructor. Creates an empty VersionInfo object.
  31. VersionInfo();
  32. // @cmember Constructor. Creates a VersionInfo object containing the version
  33. // information for the specified filename.
  34. VersionInfo(char* pszFileName);
  35. // @cmember The name of the product.
  36. char m_szProductName[48];
  37. // @cmember The text representation of the version information.
  38. char m_szProductVersion[64];
  39. // @cmember The text representation of the build flavor, i.e., "Debug", "Test", or "Retail"
  40. char m_szBuildFlavor[16];
  41. // @cmember The high-order 32 bits of the version.
  42. DWORD m_dwVersionMS;
  43. // @cmember The low-order 32 bits of the version.
  44. DWORD m_dwVersionLS;
  45. // @cmember The bits in this field indicate the type of build. See VS_FF_ definitions.
  46. // Note that an off bit value can mean either FALSE or indeterminate from the
  47. // version resource, but an on bit means TRUE.
  48. DWORD m_dwFileFlags;
  49. };
  50. typedef VersionInfo* PVI;