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

Вниз

Есть ли StgOpenStorageEx в реализации WinAPI Delphi?   Найти похожие ветки 

 
Damage   (2002-11-07 00:08) [0]

Понадобилось использовать StgOpenStorageEx, и чего-то не смог найти. Нашел только StgOpenStorage в ole2.dcu. Это аналог, или что-то другое? И можно ли ее использовать для получения свойств файла?


 
Сахаров Сергей   (2002-11-07 12:36) [1]

StgOpenStorageEx реализована только начиная с Win2k и соответственно в Delphi не прописана.
Так что ручками прописывать придётся.

Немного из MSDN:
To get a pointer to the compound file implementation of IPropertySetStorage, specify the header-defined name for the identifier IID_IStorage as the riid parameter, or use the StgCreateStorageEx or StgOpenStorageEx functions. In both cases, specify STGFMT_STORAGE as the stgfmt parameter. (STGFMT_ANY can alternatively be specified in the case of StgOpenStorageEx.) Also, specify the header-defined name for the interface identifier (IID) IID_IPropertySetStorage as the riid parameter. Both functions supply a pointer to the object"s IPropertySetStorage interface.

An alternative way to get a pointer to the compound file implementation is to specify the header-defined name for the identifier IID_IStorage as the riid parameter, or to use the StgCreateDocfile or StgOpenStorage functions. This will supply a pointer to the object"s IStorage interface. When you want to deal with persistent property sets, call IStorage::QueryInterface for the IPropertySetStorage interface.

When to Use
Call the methods of IPropertySetStorage to create, open, or delete property sets in the current compound-file property set storage. There is also a method, IPropertySetStorage::Enum, that supplies a pointer to an enumerator that can be used to enumerate the property sets in the storage.




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

Форум: "WinAPI";
Текущий архив: 2002.12.19;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.014 c
3-61449
basile
2002-11-30 15:56
2002.12.19
Aggragete


4-61884
AlexRaza
2002-11-07 23:26
2002.12.19
Как убрать в Listbox вертикальную полосу прокрутки?


1-61522
viper
2002-12-09 12:54
2002.12.19
Как закрыть форму?


1-61614
Шурик Ш
2002-12-10 15:30
2002.12.19
Забыл основы Паскаля


1-61661
Balu
2002-12-06 17:35
2002.12.19
Разное поведение Variant в D5 и D6





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский