本文整理自网络,侵删。
{得到系统C:\Windows\system32 路径}//调用 Edit1.text:=getSys32Path();function getSys32Path():string;var sPath : PCHAR ;begin GetMem(sPath,255); GetSystemDirectory(sPath,255); Result := sPath;//C:\Windows\system32end;
相关阅读 >>
Delphi 10分钟10行代码开发app(Delphi 应用案例)
Delphi 10.3 调试程序时出错:unable to create process:请求的操作需要提升
更多相关阅读请进入《Delphi》频道 >>