Pegar caminho do system32

Delphi

22/02/2008

Como faço para pegar o caminho do system32 que o windows está usando?


Luiz_aquino

Luiz_aquino

Curtidas 0

Respostas

Emarcolongo

Emarcolongo

22/02/2008

Tente isto

function SysSystemDir: string;
begin
  SetLength(Result, MAX_PATH);
  if GetSystemDirectory(PChar(Result), MAX_PATH) > 0 then
  Result := string(PChar(Result))
  else
  Result := ´´;
end;



GOSTEI 0
Emarcolongo

Emarcolongo

22/02/2008

Tente isto

function SysSystemDir: string;
begin
  SetLength(Result, MAX_PATH);
  if GetSystemDirectory(PChar(Result), MAX_PATH) > 0 then
  Result := string(PChar(Result))
  else Result := ´´;
end;



GOSTEI 0
POSTAR