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


1-1272500252
SPeller
2010-04-29 04:17
2011.11.13
Можно ли проверить указатель на корректность?


2-1311744151
Шел мимо решил зайти
2011-07-27 09:22
2011.11.13
работа с excel


2-1311057279
RWolf
2011-07-19 10:34
2011.11.13
Баг обхода контролов на форме по клавише Tab


2-1311230686
alexdn
2011-07-21 10:44
2011.11.13
Изменение Label