Delphi 的一些函数(Windows相关)

// 获取Windows目录
function GetWindowsPath: String;
var
S:PChar;
begin
GetMem(S, MAX_PATH);
GetWindowsDirectory(S,MAX_PATH);
Result :
= S;
FreeMem(S);
end;

posted @ 2011-06-16 10:24  九月的海  阅读(299)  评论(0编辑  收藏  举报