FileInfo.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef FileInfoH
  2. #define FileInfoH
  3. struct TTranslation {
  4. Word Language, CharSet;
  5. };
  6. // Return pointer to file version info block
  7. void * __fastcall CreateFileInfo(UnicodeString FileName);
  8. // Free file version info block memory
  9. void __fastcall FreeFileInfo(void * FileInfo);
  10. // Return pointer to fixed file version info
  11. PVSFixedFileInfo __fastcall GetFixedFileInfo(void * FileInfo);
  12. // Return number of available file version info translations
  13. unsigned __fastcall GetTranslationCount(void * FileInfo);
  14. // Return i-th translation in the file version info translation list
  15. TTranslation __fastcall GetTranslation(void * FileInfo, unsigned i);
  16. // Return the name of the specified language
  17. UnicodeString __fastcall GetLanguage(Word Language);
  18. // Return the value of the specified file version info string using the
  19. // specified translation
  20. UnicodeString __fastcall GetFileInfoString(void * FileInfo,
  21. TTranslation Translation, UnicodeString StringName, bool AllowEmpty = false);
  22. int __fastcall CalculateCompoundVersion(int MajorVer,
  23. int MinorVer, int Release, int Build);
  24. #endif // FileInfoH