GetSystemDirectory

来源:互联网 发布:windows airplay工具 编辑:程序博客网 时间:2024/06/05 14:53

var
sBuf:array[0..Max_path] of char;
begin
GetSystemDirectory(sBuf,Max_path);
showmessage(sBuf);
showmessage(copy(sBuf,1,3));
end;

var
sBuf:array[0..Max_path] of char;
s:string;
begin
s:='C:/Documents and Settings/Administrator/Application Data/Application data/Apple Computer/QuickTime';
GetshortPathName(pchar(s),sbuf,sizeof(sbuf));
showmessage(sbuf);

原创粉丝点击