本文整理自网络,侵删。
{得到系统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实现获取文件及文件夹大小(支持超过2g的大文件)
Delphi 利用unigui中的tunipagecontrol实现多页面
Delphi中inputbox 和inputquery 函数的使用
更多相关阅读请进入《Delphi》频道 >>