Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2005.03.20;
Скачать: [xml.tar.bz2];

Вниз

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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.032 c
4-1107955685
snake_r
2005-02-09 16:28
2005.03.20
stFileSystem в TService


14-1109225061
КаПиБаРа
2005-02-24 09:04
2005.03.20
Опрос - Клавиатура и грязные лапки :)


3-1107447012
fess
2005-02-03 19:10
2005.03.20
Доступ к Access с помощью ADO


14-1109255082
Ирина
2005-02-24 17:24
2005.03.20
Крис Касперский


14-1109154227
[wl]
2005-02-23 13:23
2005.03.20
Подскажите веб-браузер для сотового (J2ME MIDP2.0)





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский