如何在delphi中用API获取windows的安装目录 各位好! 如何在delphi中用API获取windows的安装目录? 如,有些人把操作系统安装在【非C盘】里面,而且取非默认的目录名 我如何在delphi程序中获取这个用户自定义的windows安装路径。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function GetWindowsPath: String;var buf : Array[0..255] of Char; s : String;begin GetWindowsDirectory( @Buf, 255 ); s := StrPas( @Buf ); if s[Length(s)] <> '\' then s := s + '\'; Result := s;end; 求dephi7 ftp源代码!!! 谁知道如何截取网络封包?就像wpe一样的。 mdichild还真难控制 delphi写的数据库应用程序打包的问题 散20分给进来的前两个水友们 跨越路由器的通讯 怎样判断numlock开启了? 各位高手大哥:关于数据库的一点小问题,谢谢! Overbyte SSL 懂得dx帮帮忙 delphi+dcef3 如何将几个声音文件读取到内存中然后连续播放? 请教计费系统的开发问题
var
buf : Array[0..255] of Char;
s : String;
begin
GetWindowsDirectory( @Buf, 255 );
s := StrPas( @Buf );
if s[Length(s)] <> '\' then
s := s + '\';
Result := s;
end;