12#include <owl/except.rh>
18static tchar viRootStr[] =
_T(
"\\");
19static tchar viTransStr[] =
_T(
"\\VarFileInfo\\Translation");
20static tchar viSubBlockQueryFmt[] =
_T(
"\\StringFileInfo\\%08lx\\%s");
21static tchar viFileDescStr[] =
_T(
"FileDescription");
22static tchar viFileVersionStr[] =
_T(
"FileVersion");
23static tchar viInternalNameStr[] =
_T(
"InternalName");
24static tchar viLegalCopyrightStr[] =
_T(
"LegalCopyright");
25static tchar viOriginalFilenameStr[] =
_T(
"OriginalFilename");
26static tchar viProductNameStr[] =
_T(
"ProductName");
27static tchar viProductVersionStr[] =
_T(
"ProductVersion");
28static tchar viSpecialBuildStr[] =
_T(
"SpecialBuild");
101 Buff = buf.Relinquish ();
220 bool operator=(
bool r)
#define PRECONDITION(condition)
static DWORD VerLanguageName(DWORD, TCHAR *, DWORD)
static BOOL VerQueryValue(const LPVOID, TCHAR *, LPVOID, uint *)
static BOOL GetFileVersionInfo(TCHAR *, DWORD, DWORD, LPVOID)
static DWORD GetFileVersionInfoSize(TCHAR *, LPDWORD)
Exception class for TModuleVersionInfo. [VH 2005-04-03].
TXOwl is root class of the ObjectWindows exception hierarchy.
VS_FIXEDFILEINFO * FixedInfo
Fixed file info structure.
bool GetSpecialBuild(LPCTSTR &debug, uint lang=0)
Retrieves the special build number.
static void Raise(const tstring &name=tstring())
Throws the exception.
bool GetOriginalFilename(LPCTSTR &originalFilename, uint lang=0)
Retrieves the original filename.
bool GetProductVersion(LPCTSTR &prodVersion, uint lang=0)
Retrieves the version of the product.
bool GetProductName(LPCTSTR &prodName, uint lang=0)
Retrieves the product name this module is associated with.
void Throw()
Throws the exception.
tstring GetLanguageName() const
Return the language name of this module.
HINSTANCE THandle
TModule encapsulates an HINSTANCE.
TModuleVersionInfo(TModule::THandle module)
Constructs a TModuleVersionInfo given a module or instance handle.
TXModuleVersionInfo * Clone()
Creates a copy of the exception.
bool GetFileVersion(LPCTSTR &fileVersion, uint lang=0)
Retrieves the file version information in the requested language id.
bool GetFileDescription(LPCTSTR &fileDesc, uint lang=0)
Retrieves the file description information in the requested language id.
TXModuleVersionInfo(const tstring &name=tstring())
Create the exception.
uint8 * Buff
new'd File version info buffer
bool GetLegalCopyright(LPCTSTR ©right, uint lang=0)
Retrieves the copyright message.
TFileType GetFileType() const
bool GetInternalName(LPCTSTR &internalName, uint lang=0)
Retrieves the internal name of the module.
uint32 GetFileSubType() const
Returns values of TFileType if GetFileType() returned DevDriver or Font.
uint32 Lang
Default language translation.
bool GetInfoString(LPCTSTR str, LPCTSTR &value, uint lang=0)
Queries any given "\\StringFileInfo\\lang-charset\<str>" version.
void Init(LPCTSTR modFName)
FILETIME GetFileDate() const
Retrieves the file date.
@ KybdDriver
VFT2_DRV_KEYBOARD.
@ SysDriver
VFT2_DRV_SYSTEM.
@ VectorFont
VFT2_FONT_VECTOR.
@ InstallableDriver
VFT2_DRV_INSTALLABLE.
@ DisplayDriver
VFT2_DRV_DISPLAY.
@ RasterFont
VFT2_FONT_RASTER.
@ UnknownFont
VFT2_UNKNOWN.
@ LangDriver
VFT2_DRV_LANGUAGE.
@ MouseDriver
VFT2_DRV_MOUSE.
@ TrueTypeFont
VFT2_FONT_TRUETYPE.
@ UnknownDevDriver
VFT2_UNKNOWN.
@ PtrDriver
VFT2_DRV_PRINTER.
@ SoundDriver
VFT2_DRV_SOUND.
@ NtwkDriver
VFT2_DRV_NETWORK.
Definition of class TModule.
Object Windows Library (OWLNext Core)
uint32 MkUint32(uint16 lo, uint16 hi)
uint16 HiUint16(LRESULT r)
uint16 LoUint16(LRESULT r)