![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cFileVer.h>
Public Types | |
| enum | P_TYPE_ { P_QTY = 6 } |
Public Member Functions | |
| cFileVer (void) | |
| virtual | ~cFileVer (void) |
| HRESULT | ReadFileVer (const FILECHAR_t *pszFilePath) |
| virtual HRESULT | PropSetN (IPROPIDX_t ePropIdx, const char *pszValue) |
| UNITTEST_FRIEND (cFileVer) | |
Static Public Member Functions | |
| static UINT32 GRAYCALL | MakeVersionNum (const char *pszFileVersion, size_t iBytes=sizeof(UINT32)) |
Public Attributes | |
| cStringF | m_sFilePath |
| full path for the file. More... | |
| cStringA | m_sCompanyName |
| "CompanyName", // GRAY_COMPANY More... | |
| cStringA | m_sFileDescription |
| "FileDescription", More... | |
| cStringA | m_sFileVersion |
| "FileVersion", // GRAY_VERSION_S More... | |
| cStringA | m_sProductName |
| "ProductName", More... | |
| cStringA | m_sProdVersion |
| "ProductVersion", // GRAY_VERSION_S More... | |
| cStringA | m_sLegalCopyright |
| "LegalCopyright", // GRAY_COPYRIGHT More... | |
| DWORD | m_dwFileVersionMS |
| DWORD | m_dwFileVersionLS |
Static Public Attributes | |
| static const char *const | k_Props [P_QTY+1] |
Read version info/metadata from a single PE type file (DLL or EXE). (if it has any) Not the same as cFileStatus or cOSModule footprint info.
| GrayLib::cFileVer::cFileVer | ( | void | ) |
|
virtual |
|
static |
convert a version string to a number. in the form "1.2.3.4" or "1,2,3,4". One byte per digit.
|
virtual |
IIniObjectWriteN
Implements Gray::IIniObjectWriteN.
| HRESULT GrayLib::cFileVer::ReadFileVer | ( | const FILECHAR_t * | pszFilePath | ) |
Read the version block for a DLL or EXE.
| GrayLib::cFileVer::UNITTEST_FRIEND | ( | cFileVer | ) |
|
static |
| DWORD GrayLib::cFileVer::m_dwFileVersionLS |
| DWORD GrayLib::cFileVer::m_dwFileVersionMS |
| cStringA GrayLib::cFileVer::m_sCompanyName |
"CompanyName", // GRAY_COMPANY
| cStringA GrayLib::cFileVer::m_sFileDescription |
"FileDescription",
| cStringF GrayLib::cFileVer::m_sFilePath |
full path for the file.
| cStringA GrayLib::cFileVer::m_sFileVersion |
"FileVersion", // GRAY_VERSION_S
| cStringA GrayLib::cFileVer::m_sLegalCopyright |
"LegalCopyright", // GRAY_COPYRIGHT
| cStringA GrayLib::cFileVer::m_sProductName |
"ProductName",
| cStringA GrayLib::cFileVer::m_sProdVersion |
"ProductVersion", // GRAY_VERSION_S