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.

45 lines
1.5 KiB

  1. // FileVersion.h: interface for the CFileVersion class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_FILEVERSION_H__9D1C1050_06E0_11D2_8362_0000F87A3912__INCLUDED_)
  5. #define AFX_FILEVERSION_H__9D1C1050_06E0_11D2_8362_0000F87A3912__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. class CFileVersion
  10. {
  11. // Construction
  12. public:
  13. CFileVersion();
  14. // Operations
  15. public:
  16. BOOL Open(LPCTSTR lpszModuleName);
  17. void Close();
  18. CString QueryValue(LPCTSTR lpszValueName, DWORD dwLangCharset = 0);
  19. CString GetFileDescription() {return QueryValue(_T("FileDescription")); };
  20. CString GetFileVersion() {return QueryValue(_T("FileVersion")); };
  21. CString GetInternalName() {return QueryValue(_T("InternalName")); };
  22. CString GetCompanyName() {return QueryValue(_T("CompanyName")); };
  23. CString GetLegalCopyright() {return QueryValue(_T("LegalCopyright")); };
  24. CString GetOriginalFilename() {return QueryValue(_T("OriginalFilename"));};
  25. CString GetProductName() {return QueryValue(_T("ProductName")); };
  26. CString GetProductVersion() {return QueryValue(_T("ProductVersion")); };
  27. BOOL GetFixedInfo(VS_FIXEDFILEINFO& vsffi);
  28. CString GetFixedFileVersion();
  29. CString GetFixedProductVersion();
  30. // Attributes
  31. protected:
  32. LPBYTE m_lpVersionData;
  33. DWORD m_dwLangCharset;
  34. // Implementation
  35. public:
  36. ~CFileVersion();
  37. };
  38. #endif // !defined(AFX_FILEVERSION_H__9D1C1050_06E0_11D2_8362_0000F87A3912__INCLUDED_)