Главная страница
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.009 c
15-1311107388
Юрий
2011-07-20 00:29
2011.11.13
С днем рождения ! 20 июля 2011 среда


11-1239783727
Ken
2009-04-15 12:22
2011.11.13
Data property for TKOLListview?


2-1311686055
alexx777
2011-07-26 17:14
2011.11.13
devexp & ribbon & skin


2-1311147342
xtd
2011-07-20 11:35
2011.11.13
Ускорить отсчет времени указанному приложению


2-1311246212
arturich
2011-07-21 15:03
2011.11.13
Вопрос по DevExpress