Pegar caminho do system32
Como faço para pegar o caminho do system32 que o windows está usando?
Luiz_aquino
Curtidas 0
Respostas
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
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