|
@@ -36,6 +36,8 @@ uses
|
|
{ OS has an ansistring/single byte environment variable API }
|
|
{ OS has an ansistring/single byte environment variable API }
|
|
{$define SYSUTILS_HAS_ANSISTR_ENVVAR_IMPL}
|
|
{$define SYSUTILS_HAS_ANSISTR_ENVVAR_IMPL}
|
|
|
|
|
|
|
|
+{$DEFINE executeprocuni} (* Only 1 byte version of ExecuteProcess is provided by the OS *)
|
|
|
|
+
|
|
{ Include platform independent interface part }
|
|
{ Include platform independent interface part }
|
|
{$i sysutilh.inc}
|
|
{$i sysutilh.inc}
|
|
|
|
|
|
@@ -382,11 +384,11 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Procedure InternalFindClose(var Handle: Pointer);
|
|
|
|
|
|
+Procedure InternalFindClose(var Handle: longint);
|
|
var
|
|
var
|
|
Sr: PSearchRec;
|
|
Sr: PSearchRec;
|
|
begin
|
|
begin
|
|
- Sr := PSearchRec(Handle);
|
|
|
|
|
|
+ Sr := PSearchRec(PtrUint(Handle));
|
|
if Sr <> nil then
|
|
if Sr <> nil then
|
|
begin
|
|
begin
|
|
//!! Dispose(Sr);
|
|
//!! Dispose(Sr);
|
|
@@ -507,7 +509,7 @@ var
|
|
OldSystemFileName, NewSystemFileName: RawByteString;
|
|
OldSystemFileName, NewSystemFileName: RawByteString;
|
|
begin
|
|
begin
|
|
OldSystemFileName:=ToSingleByteFileSystemEncodedFileName(OldName);
|
|
OldSystemFileName:=ToSingleByteFileSystemEncodedFileName(OldName);
|
|
- NewSystemFileName:=ToSingleByteFileSystemEncodedFileName(NewFile);
|
|
|
|
|
|
+ NewSystemFileName:=ToSingleByteFileSystemEncodedFileName(NewName);
|
|
StringToTB(OldSystemFileName + #0 + NewSystemFileName);
|
|
StringToTB(OldSystemFileName + #0 + NewSystemFileName);
|
|
Regs.Edx := tb_offset;
|
|
Regs.Edx := tb_offset;
|
|
Regs.Ds := tb_segment;
|
|
Regs.Ds := tb_segment;
|
|
@@ -645,10 +647,6 @@ end ;
|
|
Misc Functions
|
|
Misc Functions
|
|
****************************************************************************}
|
|
****************************************************************************}
|
|
|
|
|
|
-procedure Beep;
|
|
|
|
-begin
|
|
|
|
-end;
|
|
|
|
-
|
|
|
|
|
|
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
Locale Functions
|
|
Locale Functions
|
|
@@ -779,11 +777,10 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-function ExecuteProcess(Const Path: AnsiString; Const ComLine: AnsiString;Flags:TExecuteFlags=[]):integer;
|
|
|
|
-
|
|
|
|
|
|
+function ExecuteProcess(Const Path: RawByteString; Const ComLine: RawByteString;Flags:TExecuteFlags=[]):integer;
|
|
var
|
|
var
|
|
e : EOSError;
|
|
e : EOSError;
|
|
- CommandLine: AnsiString;
|
|
|
|
|
|
+ CommandLine: RawByteString;
|
|
|
|
|
|
begin
|
|
begin
|
|
dos.exec(path,comline);
|
|
dos.exec(path,comline);
|
|
@@ -802,11 +799,11 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-function ExecuteProcess (const Path: AnsiString;
|
|
|
|
- const ComLine: array of AnsiString;Flags:TExecuteFlags=[]): integer;
|
|
|
|
|
|
+function ExecuteProcess (const Path: RawByteString;
|
|
|
|
+ const ComLine: array of RawByteString;Flags:TExecuteFlags=[]): integer;
|
|
|
|
|
|
var
|
|
var
|
|
- CommandLine: AnsiString;
|
|
|
|
|
|
+ CommandLine: RawByteString;
|
|
I: integer;
|
|
I: integer;
|
|
|
|
|
|
begin
|
|
begin
|