|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TModuleVersionInfo provides access to a TModule's VERSIONINFO resource. More...
#include <owl/module.h>
Public Types | |
| enum | TFileOS { OSUnknown = VOS_UNKNOWN , DOS = VOS_DOS , OS216 = VOS_OS216 , OS232 = VOS_OS232 , NT = VOS_NT , Windows16 = VOS__WINDOWS16 , PM16 = VOS__PM16 , PM32 = VOS__PM32 , Windows32 = VOS__WINDOWS32 , DosWindows16 = VOS_DOS_WINDOWS16 , DosWindows32 = VOS_DOS_WINDOWS32 , OS216PM16 = VOS_OS216_PM16 , OS232PM32 = VOS_OS232_PM32 , NTWindows32 = VOS_NT_WINDOWS32 } |
| TFileOS values are returned by GetFileOS() More... | |
| enum | TFileType { TypeUnknown = VFT_UNKNOWN , App = VFT_APP , DLL = VFT_DLL , DevDriver = VFT_DRV , Font = VFT_FONT , VirtDevice = VFT_VXD , StaticLib = VFT_STATIC_LIB } |
| TFileType is returned by GetFileType() More... | |
| enum | TFileSubType { UnknownDevDriver , PtrDriver , KybdDriver , LangDriver , DisplayDriver , MouseDriver , NtwkDriver , SysDriver , InstallableDriver , SoundDriver , UnknownFont , RasterFont , VectorFont , TrueTypeFont } |
| TFileSubType values are returned by GetFileSubType() if GetFileType. More... | |
Public Member Functions | |
| TModuleVersionInfo (TModule::THandle module) | |
| Constructs a TModuleVersionInfo given a module or instance handle. | |
| TModuleVersionInfo (const tstring &modFName) | |
| Constructs a TModuleVersionInfo given a module filename String version. | |
| ~TModuleVersionInfo () | |
| VS_FIXEDFILEINFO & | GetFixedInfo () |
| Return the version information about this module. | |
| uint32 | GetSignature () const |
| uint32 | GetStrucVersion () const |
| uint32 | GetFileVersionMS () const |
| Get the major file version (first 32-bits). | |
| uint32 | GetFileVersionLS () const |
| Get the minor file version (last 32-bits). | |
| uint32 | GetProductVersionMS () const |
| Get the major product version number (first 32-bits). | |
| uint32 | GetProductVersionLS () const |
| Get the minor product version number (last 32-bits). | |
| bool | IsFileFlagSet (uint32 flag) const |
| Return true if the flag has been set in the version info. | |
| uint32 | GetFileFlagsMask () const |
| uint32 | GetFileFlags () const |
| bool | IsDebug () const |
| bool | InfoInferred () const |
| bool | IsPatched () const |
| bool | IsPreRelease () const |
| bool | IsPrivateBuild () const |
| bool | IsSpecialBuild () const |
| uint32 | GetFileOS () const |
| returns TFileOS values | |
| TFileType | GetFileType () const |
| uint32 | GetFileSubType () const |
| Returns values of TFileType if GetFileType() returned DevDriver or Font. | |
| FILETIME | GetFileDate () const |
| Retrieves the file date. | |
| bool | GetInfoString (LPCTSTR str, LPCTSTR &value, uint lang=0) |
| Queries any given "\\StringFileInfo\\lang-charset\\<str>" version. | |
| bool | GetFileDescription (LPCTSTR &fileDesc, uint lang=0) |
| Retrieves the file description information in the requested language id. | |
| bool | GetFileVersion (LPCTSTR &fileVersion, uint lang=0) |
| Retrieves the file version information in the requested language id. | |
| bool | GetInternalName (LPCTSTR &internalName, uint lang=0) |
| Retrieves the internal name of the module. | |
| bool | GetLegalCopyright (LPCTSTR ©right, uint lang=0) |
| Retrieves the copyright message. | |
| bool | GetOriginalFilename (LPCTSTR &originalFilename, uint lang=0) |
| Retrieves the original filename. | |
| bool | GetProductName (LPCTSTR &prodName, uint lang=0) |
| Retrieves the product name this module is associated with. | |
| bool | GetProductVersion (LPCTSTR &prodVersion, uint lang=0) |
| Retrieves the version of the product. | |
| bool | GetSpecialBuild (LPCTSTR &debug, uint lang=0) |
| Retrieves the special build number. | |
| tstring | GetInfoString (const tstring &str, uint lang=0) |
| tstring | GetFileDescription (uint lang=0) |
| Retrieves the file description information in the requested language id. | |
| tstring | GetFileVersion (uint lang=0) |
| Retrieves the file version information in the requested language id. | |
| tstring | GetInternalName (uint lang=0) |
| Retrieves the internal name of the module. | |
| tstring | GetLegalCopyright (uint lang=0) |
| Retrieves the copyright message. | |
| tstring | GetOriginalFilename (uint lang=0) |
| Retrieves the original filename. | |
| tstring | GetProductName (uint lang=0) |
| Retrieves the product name this module is associated with. | |
| tstring | GetProductVersion (uint lang=0) |
| Retrieves the version of the product. | |
| tstring | GetSpecialBuild (uint lang=0) |
| Retrieves the special build number. | |
| uint | GetLanguage () const |
| Return the language id of this module. | |
| tstring | GetLanguageName () const |
| Return the language name of this module. | |
Static Public Member Functions | |
| static tstring | GetLanguageName (uint language) |
| Gets the language name string associated with a language/charset code. | |
Protected Member Functions | |
| void | Init (LPCTSTR modFName) |
Protected Attributes | |
| uint8 * | Buff |
| new'd File version info buffer | |
| uint32 | Lang |
| Default language translation. | |
| VS_FIXEDFILEINFO * | FixedInfo |
| Fixed file info structure. | |
TModuleVersionInfo provides access to a TModule's VERSIONINFO resource.