unit Windows; { Заглушка модуля Windows для проверки WINDOWS-ветки на Linux. Объявляет РОВНО те имена, которыми настоящий Windows перекрывает SysUtils — само перекрытие и ловит ошибки, невидимые на Linux: unit Windows стоит в uses ПОСЛЕ SysUtils, поэтому его трёхпараметрический GetEnvironmentVariable выигрывает у однопараметрического из SysUtils, и вызов падает с «wrong number of parameters». Ровно так win64-сборка и легла. } {$MODE Delphi} interface type DWORD = LongWord; function GetEnvironmentVariable(lpName, lpBuffer: PChar; nSize: DWORD): DWORD; stdcall; function QueryPerformanceCounter(var lpPerformanceCount: Int64): LongBool; stdcall; function QueryPerformanceFrequency(var lpFrequency: Int64): LongBool; stdcall; function GetTickCount64: QWord; stdcall; implementation function GetEnvironmentVariable(lpName, lpBuffer: PChar; nSize: DWORD): DWORD; stdcall; begin Result := 0; end; function QueryPerformanceCounter(var lpPerformanceCount: Int64): LongBool; stdcall; begin lpPerformanceCount := 123456789; Result := True; end; function QueryPerformanceFrequency(var lpFrequency: Int64): LongBool; stdcall; begin lpFrequency := 10000000; Result := True; end; function GetTickCount64: QWord; stdcall; begin Result := 42; end; end.