FileInfo.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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, int MinorVer, int Release = 0);
  23. int ZeroBuildNumber(int CompoundVersion);
  24. int __fastcall StrToCompoundVersion(UnicodeString S);
  25. int __fastcall CompareVersion(UnicodeString V1, UnicodeString V2);
  26. #endif // FileInfoH