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.

74 lines
1.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // VerInfo.h
  7. //
  8. // Abstract:
  9. // Definition of the CVersionInfo class.
  10. //
  11. // Implementation File:
  12. // VerInfo.cpp
  13. //
  14. // Author:
  15. // David Potter (davidp) October 11, 1996
  16. //
  17. // Revision History:
  18. //
  19. // Notes:
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #ifndef _VERINFO_H_
  23. #define _VERINFO_H_
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Include Files
  26. /////////////////////////////////////////////////////////////////////////////
  27. /////////////////////////////////////////////////////////////////////////////
  28. // Forward Class Declarations
  29. /////////////////////////////////////////////////////////////////////////////
  30. class CVersionInfo;
  31. /////////////////////////////////////////////////////////////////////////////
  32. // External Class Declarations
  33. /////////////////////////////////////////////////////////////////////////////
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CVersionInfo:
  36. /////////////////////////////////////////////////////////////////////////////
  37. class CVersionInfo
  38. {
  39. public:
  40. // Construction
  41. CVersionInfo(void);
  42. ~CVersionInfo(void);
  43. // Secondary construction.
  44. void Init(void);
  45. // Operations
  46. public:
  47. LPCTSTR PszQueryValue(IN LPCTSTR pszValueName);
  48. BOOL BQueryValue(
  49. IN LPCTSTR pszValueName,
  50. OUT DWORD & rdwValue
  51. );
  52. const VS_FIXEDFILEINFO * PffiQueryValue(void);
  53. void QueryFileVersionDisplayString(OUT CString & rstrValue);
  54. // Implementation
  55. protected:
  56. LPBYTE m_pbVerInfo;
  57. LPBYTE PbVerInfo(void) { return m_pbVerInfo; }
  58. }; //*** class CVersionInfo
  59. /////////////////////////////////////////////////////////////////////////////
  60. #endif // _VERINFO_H_