Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.07.10;
Скачать: CL | DM;

Вниз

путь к системным папкам   Найти похожие ветки 

 
maxon   (2003-04-22 13:50) [0]

как мне определить в каком разделе сидит папка program files или windows


 
REA ©   (2003-04-22 13:59) [1]

GetWindowsDirectory, GetSystemDirectory


 
Zz_   (2003-04-22 14:00) [2]

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir


 
REA ©   (2003-04-22 14:05) [3]

SHGetSpecialFolderPath


 
Shurik   (2003-04-27 06:10) [4]

function GetWindowsFolder: string;
var
Required: Cardinal;
begin
Result := "";
Required := GetWindowsDirectory(nil, 0);
if Required <> 0 then
begin
SetLength(Result, Required);
GetWindowsDirectory(PChar(Result), Required);
StrResetLength(Result);
end;
end;

function GetWindowsSystemFolder: string;
var
Required: Cardinal;
begin
Result := "";
Required := GetSystemDirectory(nil, 0);
if Required <> 0 then
begin
SetLength(Result, Required);
GetSystemDirectory(PChar(Result), Required);
StrResetLength(Result);
end;
end;

function GetWindowsTempFolder: string;
var
Required: Cardinal;
begin
Result := "";
Required := GetTempPath(0, nil);
if Required <> 0 then
begin
SetLength(Result, Required);
GetTempPath(Required, PChar(Result));
StrResetLength(Result);
Result := PathRemoveSeparator(Result);
end;
end;

function GetSpecialFolderLocation(const Folder: Integer): string;
var
FolderPidl: PItemIdList;
begin
if Succeeded(SHGetSpecialFolderLocation(0, Folder, FolderPidl)) then
begin
Result := PidlToPath(FolderPidl);
PidlFree(FolderPidl);
end
else
Result := "";
end;

в последней функе на вход - любая константа CSIDL_XXX (полный список в модуле ShlObj)



Страницы: 1 вся ветка

Текущий архив: 2003.07.10;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.024 c
6-31378
LOX
2003-05-05 13:58
2003.07.10
А как вызвать почтового клиента?


1-31203
Dream
2003-06-28 12:43
2003.07.10
проблемы с memo ( смешно конечно но я по моему уже гоню )


14-31441
XobBIT
2003-06-23 08:45
2003.07.10
Как открыть chm файл на нужной странице(topic)?


14-31412
Marser
2003-06-23 00:25
2003.07.10
Работа студента (в летний период и вообще)


14-31406
Nucl
2003-06-25 15:34
2003.07.10
Компонент для прокрутки Flash