Главная страница
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.01 c
9-1189865512
andreil
2007-09-15 18:11
2011.11.13
Вопрос по вращению в OpenGl


2-1311321505
ixen
2011-07-22 11:58
2011.11.13
Как узнать тип поля?


3-1266143158
dmitry1208197320
2010-02-14 13:25
2011.11.13
Как можно сохранить таблицу на диске


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


15-1310627957
R_R
2011-07-14 11:19
2011.11.13
Как работать с Windows VDS, что можно почитать?