30 {
"CompanyName",
"FileDescription",
"FileVersion",
31 "InternalName",
"LegalCopyright",
"LegalTrademarks",
32 "OriginalFilename",
"ProductName",
"ProductVersion",
47 Len = GetFileVersionInfoSize (ThisSourceFile.c_str(), &Handle);
49 VersionInfo =
new BYTE[Len];
51 if (GetFileVersionInfo (ThisSourceFile.c_str(), Handle, Len, VersionInfo))
54 if (VerQueryValue ( (
void *) VersionInfo,
"\\VarFileInfo\\Translation", (
void **) &PCharset, &InfoLength))
56 LangCharset = AnsiString().sprintf(
"%.4x%.4x", LOWORD(*PCharset), HIWORD(*PCharset));
74 AnsiString __fastcall TModuleVersionInfo::GetKey (AnsiString ThisKeyName)
82 Result.SetLength(255);
83 if (VerQueryValue ( (
void *) VersionInfo,
84 AnsiString().sprintf(
"\\StringFileInfo\\%s\\%s",
88 (
void **) &buf, &InfoLength))
108 AnsiString __fastcall TModuleVersionInfo::GetVersionInfo (
int Index)
111 return StandardKeys[Index];
119 #pragma package(smart_init)