'GetWindowsDirectory'에 해당되는 글 1건
- 2007/08/25 How To Get Windows And System Directory
functionGetWinDir: String;
var
dir: array [0..max_path] of char;
begin
 GetWindowsDirectory(dir, max_path);
result:=StrPas(dir);
end;
functionGetSysDir: String;
var
dir: array [0..max_path] of char;
begin
 GetSystemDirectory(dir, max_path);
result:=StrPas(dir);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
label1.caption:=GetWinDir;
label2.caption:=GetSysDir;
end;
var
dir: array [0..max_path] of char;
begin
 GetWindowsDirectory(dir, max_path);
result:=StrPas(dir);
end;
functionGetSysDir: String;
var
dir: array [0..max_path] of char;
begin
 GetSystemDirectory(dir, max_path);
result:=StrPas(dir);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
label1.caption:=GetWinDir;
label2.caption:=GetSysDir;
end;

Prev

Rss Feed