Вниз
Скачать: CL | DM;

Как програмно узнать местоположение папки ProgramFiles   Найти похожие ветки 

← →
Илья Бобров   (2005-09-18 13:51) [0]

Как програмно узнать местоположение папки ProgramFiles


← →
MBo ©   (2005-09-18 14:11) [1]

To get those special folders you use the ShGetSpecialFolderLocation API
function together with ShGetPathFromIDList:

Uses Windows, SysUtils, ActiveX, ShellAPI;

Function GetShellFoldername( folderID: Integer ): String;
 Var
   pidl: PItemIDList;
   buf : Array[0..MAX_PATH] Of Char;
 Begin
   Result := "";
   If Succeeded( ShGetSpecialFolderLocation( GetActiveWindow, folderID,
        pidl ))
   Then Begin
     If ShGetPathfromIDList( pidl, buf ) Then
       Result := buf;
     CoTaskMemFree(pidl);
   End { If }
 End; { GetShellFoldername }

The folderID is one of the CSIDL_* constants defined in unit ShellAPI. For
the desktop folder you use CSIDL_DESKTOP, for the program menu folder
CSIDL_PROGRAMS.

Peter Below



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

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.052 c
14-1130206118
Хаб1
2005-10-25 06:08
2005.11.20
Посоветуйте USB-концентратор ?


8-1120128938
КиТаЯц
2005-06-30 14:55
2005.11.20
Как обрезать картинку?


2-1130492059
VEZ
2005-10-28 13:34
2005.11.20
StrToInt


14-1130501973
NiGGa
2005-10-28 16:19
2005.11.20
Компонента графика


4-1127073727
Kerk
2005-09-19 00:02
2005.11.20
Как получить интервал времени, внутри которого два...




   Наверх