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

Вниз

SHGetSpecialFolderLocation   Найти похожие ветки 

 
Начинающий2   (2005-03-09 11:35) [0]

Привет всем. С этой функцией я могу получить путь к папкам в *Documents and Settings* только текущего пользователя, а как получить путь к папкам других пользователей, к примеру к папкам в *All Users*. Перерыл всю спраку и все архивы форума что у меня есть, но нечиго не нашол. Помагите плиз, нужен простой пример или где копать по етой теме.


 
DiamondShark ©   (2005-03-09 11:43) [1]

Плохо рыл.

CSIDL_COMMON_APPDATA
Version 5.0. Application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.
CSIDL_COMMON_DESKTOPDIRECTORY
File system directory that contains files and folders that appear on the desktop for all users. A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT® systems.
CSIDL_COMMON_DOCUMENTS
File system directory that contains documents that are common to all users. Typical paths are C:\Documents and Settings\All Users\Documents. Valid for Windows NT® systems and Windows 95 and Windows 98 systems with Shfolder.dll installed.
CSIDL_COMMON_FAVORITES
File system directory that serves as a common repository for all users" favorite items. Valid only for Windows NT® systems.
CSIDL_COMMON_PROGRAMS
File system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs. Valid only for Windows NT® systems.
CSIDL_COMMON_STARTMENU
File system directory that contains the programs and folders that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT® systems.
CSIDL_COMMON_STARTUP
File system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Valid only for Windows NT® systems.
CSIDL_COMMON_TEMPLATES
File system directory that contains the templates that are available to all users. A typical path is C:\Documents and Settings\All Users\Templates. Valid only for Windows NT® systems.


 
Alex_Petr ©   (2005-03-09 11:45) [2]

Например, CSIDL_COMMON_PROGRAMS


 
Начинающий2   (2005-03-09 11:56) [3]

>DiamondShark ©   (09.03.05 11:43) [1]
>Плохо рыл.


Наверно плошо, три дня с архивами сидел, а в справке нашол только это:

Retrieves the location of a special folder.

WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation(;
   HWND hwndOwner,  
   int nFolder,  
   LPITEMIDLIST *ppidl );

Parameters

hwndOwner

Handle of the owner window that the client should specify if it displays a dialog box or message box.

nFolder

Value specifying the folder to retrieve the location of. This parameter can be one of the following
values:

CSIDL_BITBUCKET: Recycle bin ѕ file system directory containing file objects in the user"s
  recycle bin. The location of this directory is not in the registry; it is
  marked with the hidden and system attributes to prevent the user from moving
  or deleting it.

CSIDL_CONTROLS:  Control Panel ѕ virtual folder containing icons for the control panel
  applications.
................................

Туговато у меня с английским, темболее когда промт полетел. Спасибо, буду разбираться.

>Alex_Petr ©   (09.03.05 11:45) [2]

Тоже спасибо.



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

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

Наверх




Память: 0.47 MB
Время: 0.065 c
14-1109863401
Dann
2005-03-03 18:23
2005.03.20
Forward declarations in Cpp


1-1109888217
Германн
2005-03-04 01:16
2005.03.20
EInOutError - Invalide File Name


4-1107546201
XAN
2005-02-04 22:43
2005.03.20
kak cdelat tak ctobi ikonka proqrammi bila v systray


14-1109159297
ТехникПТО
2005-02-23 14:48
2005.03.20
Программа сжатия exe шников


1-1110143383
Kolan
2005-03-07 00:09
2005.03.20
Скажите на какой закладке лежит ListView ... обыскался уже?