1
1
mirror of https://github.com/fast4x/datalock.git synced 2025-06-05 21:49:16 +02:00

Initial Commit

This commit is contained in:
2023-02-02 22:39:42 +01:00
parent bc11aa10c9
commit 09065dd2ce
37 changed files with 7176 additions and 0 deletions

34
getvers.pas Normal file
View File

@ -0,0 +1,34 @@
unit getvers;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils {$ifdef linux}, getvers_lin {$endif} {$ifdef windows}, getvers_win, getvers_simple_win{$endif} ;
Type
FilePath = String;
Function GetVersion (Var FilePath : String): String;
implementation
Function GetVersion (Var FilePath : String): String;
var xvers : string;
begin
{$ifdef windows}
result:=GetVersionSimpleWin(FilePath);
{$else}
GetProgramVersion(xvers,FilePath);
result:=xvers;
{$endif}
end;
end.