![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Размещение папки Windows [D5, Win95/98]
VinRaider © (2003-01-25 17:54:00)Как програмно определить в какой папке(по какому пути) находится папка Windows? Ведь не всегда C:\Windows\... Заранее спасибо.
Nick_N_A (2003-01-28 05:44:00) [1]evrimoment variables> %winbootdir%
VinRaider (2003-01-26 08:33:00) [2]Anatoly Podgoretsky © (25.01.03 23:18)
Не важно откуда ты идешь, важно КУДА ты идешь!
Anatoly Podgoretsky (2003-01-25 23:18:00) [3]VinRaider © (25.01.03 17:54)
Стыдно не стало?
Ich Hasse (2003-01-25 22:29:00) [4]
function GettingWinDirectory: string;
var
Len: Cardinal;
pStr: PChar;
begin
pStr:=nil;
Len:=256;
try
pStr:=StrAlloc(Len);
GetWindowsDirectory(pStr,Len);
Result:=pStr;
finally
if pStr<>nil then StrDispose(pStr);
end;
end;
Song (2003-01-25 18:12:00) [5]GetWindowsDirectory(), логично, не правда ли? :)