GARANTIR DESCONTO

Fórum Pegar caminho do system32 #354224

22/02/2008

0

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


Luiz_aquino

Luiz_aquino

Responder

Posts

22/02/2008

Emarcolongo

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;



Responder

Gostei + 0

22/02/2008

Emarcolongo

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;



Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar