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

Вниз

Есть ли 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 вся ветка

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

Наверх




Память: 0.46 MB
Время: 0.016 c
3-61389
vsim
2002-12-02 19:18
2002.12.19
Что-то должно быть


4-61871
bytebutcher
2002-11-06 16:53
2002.12.19
Можно ли задать для уже существующего окна другой DC?


3-61446
alxx
2002-11-29 15:55
2002.12.19
Как узнать существует ли временная таблица (в MSSQLServer)?


14-61827
al_
2002-11-27 23:42
2002.12.19
Мастера!!! Помогите с задачкой!!!


7-61838
BorisUK
2002-10-17 07:49
2002.12.19
Динамик компа