diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:37:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:37:14 +0000 |
commit | ea648e70a989cca190cd7403fe892fd2dcc290b4 (patch) | |
tree | e2b6b1c647da68b0d4d66082835e256eb30970e8 /bin/win32/BINDInstall/VersionInfo.h | |
parent | Initial commit. (diff) | |
download | bind9-upstream.tar.xz bind9-upstream.zip |
Adding upstream version 1:9.11.5.P4+dfsg.upstream/1%9.11.5.P4+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | bin/win32/BINDInstall/VersionInfo.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/bin/win32/BINDInstall/VersionInfo.h b/bin/win32/BINDInstall/VersionInfo.h new file mode 100644 index 0000000..ec21540 --- /dev/null +++ b/bin/win32/BINDInstall/VersionInfo.h @@ -0,0 +1,62 @@ +// VersionInfo.h: interface for the CVersionInfo class. +// +////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_VERSIONINFO_H__F82E9FF3_5298_11D4_AB87_00C04F789BA0__INCLUDED_) +#define AFX_VERSIONINFO_H__F82E9FF3_5298_11D4_AB87_00C04F789BA0__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +class CVersionInfo +{ +public: + CVersionInfo(CString filename); + virtual ~CVersionInfo(); + BOOL IsValid() {return m_isValid;} + DWORD GetStatus() {return m_status;} + + BOOL CopyFileCheckVersion(CVersionInfo &originalFile); + BOOL CopyFileNoVersion(CVersionInfo &originalFile); + + const CString &GetFilename() {return m_filename;} + + // Extract the elements of the file's string info block + CString GetFileVersionString(); + CString GetProductVersionString(); + CString GetComments(); + CString GetFileDescription(); + CString GetInternalName(); + CString GetLegalCopyright(); + CString GetLegalTrademarks(); + CString GetOriginalFileName(); + CString GetProductName(); + CString GetSpecialBuildString(); + CString GetPrivateBuildString(); + CString GetCompanyName(); + + + // Extract the elements of the file's VS_FIXEDFILEINFO block + _int64 GetFileVersion(); + _int64 GetProductVersion(); + _int64 GetFileDate(); + + DWORD GetFileFlagMask(); + DWORD GetFileFlags(); + DWORD GetFileOS(); + DWORD GetFileType(); + DWORD GetFileSubType(); + +private: + CString m_filename; + BOOL m_isValid; + LPVOID m_versionInfo; + VS_FIXEDFILEINFO *m_fixedInfo; + DWORD m_codePage; + DWORD m_status; + + CString QueryStringValue(CString value); +}; + +#endif // !defined(AFX_VERSIONINFO_H__F82E9FF3_5298_11D4_AB87_00C04F789BA0__INCLUDED_) |