git-svn-id: trunk@864 -
@@ -82,7 +82,6 @@ Type
Implementation
-{$i custapp.inc}
{ TCustomApplication }
@@ -91,6 +90,28 @@ begin
Result:=Paramstr(0);
end;
+Procedure SysGetEnvironmentList(List : TStrings;NamesOnly : Boolean);
+
+var
+ s : string;
+ i,l,j,count : longint;
+begin
+ count:=GetEnvironmentVariableCount;
+ if count>0 then
+ for j:=1 to count do
+ begin
+ s:=GetEnvironmentString(j);
+ l:=Length(s);
+ If NamesOnly then
+ I:=pos('=',s);
+ If (I>0) then
+ S:=Copy(S,1,I-1);
+ end;
+ List.Add(S);
+end;
function TCustomApplication.GetEnvironmentVar(VarName : String): String;
begin