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

Вниз

Вопрос по SHGet   Найти похожие ветки 

 
Германн ©   (2011-07-26 00:36) [0]

Подскажите, пожалуйста наиболее "кошерную" функцию из четырех:
SHGetFolderLocation, SHGetFolderPath, SHGetSpecialFolderLocation, and SHGetSpecialFolderPath
для определения пути к папкам "общие документы" и ""документы пользователя".
OS Vista и выше.


 
sniknik ©   (2011-07-26 08:05) [1]

http://msdn.microsoft.com/en-us/library/bb762203%28v=vs.85%29.aspx
Remarks

With Windows 2000, this function is superseded by SHGetFolderLocation.


http://msdn.microsoft.com/en-us/library/bb762204%28v=vs.85%29.aspx
Remarks

The Microsoft Internet Explorer 4.0 Desktop Update must be installed for this function to be available.

With Windows 2000, this function is superseded by ShGetFolderPath. You can use this function on earlier systems by including the redistributable DLL, ShFolder.dll.


http://msdn.microsoft.com/en-us/library/bb762181%28v=vs.85%29.aspx
Deprecated. Gets the path of a folder identified by a CSIDL value.

Note  As of Windows Vista, this function is merely a wrapper for SHGetKnownFolderPath. The CSIDL value is translated to its associated KNOWNFOLDERID and then SHGetKnownFolderPath is called. New applications should use the known folder system rather than the older CSIDL system, which is supported only for backward compatibility.


http://msdn.microsoft.com/en-us/library/bb762180%28VS.85%29.aspx
Deprecated. Retrieves the path of a folder as an ITEMIDLIST structure.

Remarks

Note  As of Windows Vista, this function is merely a wrapper for SHGetKnownFolderIDList. The CSIDL value is translated to its associated KNOWNFOLDERID and SHGetKnownFolderIDList is called. New applications should use the known folder system rather than the older CSIDL system, which is supported only for backward compatibility.


очевидно что ни одну из них "кошерной" не назовешь... одни обертки других, другие устаревшие... но использовал бы все одно последнюю т.к. новые, к примеру SHGetKnownFolderIDList только для висты... а у меня куча клиентов на XP и даже 2000м.
а еще лучше ExpandEnvironmentStrings или PathUnExpandEnvStrings.
http://msdn.microsoft.com/en-us/library/bb773760%28v=VS.85%29.aspx
и плевать, что она сама у нутрях использует.


 
Германн ©   (2011-07-27 00:24) [2]


> очевидно что ни одну из них "кошерной" не назовешь... одни
> обертки других, другие устаревшие... но использовал бы все
> одно последнюю т.к. новые, к примеру SHGetKnownFolderIDList
> только для висты... а у меня куча клиентов на XP и даже
> 2000м.

Спасибо. Использую последнюю, так как дистрибутив будет выложен на сайте фирмы для бесплатного скачивания. А у пользователя может быть и ХР в том числе.



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

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

Наверх




Память: 0.47 MB
Время: 0.011 c
1-1273069609
Zoom
2010-05-05 18:26
2011.11.13
Почему перестает работать кнопка "Свернуть" ?


15-1310625725
oxffff
2011-07-14 10:42
2011.11.13
Пятница. Савеловский. Общение


15-1310588993
Юрий
2011-07-14 00:29
2011.11.13
С днем рождения ! 14 июля 2011 четверг


1-1272615220
wwictor
2010-04-30 12:13
2011.11.13
unable to load libmysql.dll


3-1265030110
macrodens
2010-02-01 16:15
2011.11.13
Почему вставляются пустые поля?