Ignore:
Timestamp:
Oct 6, 2001, 10:56:18 AM (24 years ago)
Author:
sandervl
Message:

Wine 20011004 resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/wine/obj_property.h

    r641 r6952  
    1 /* $Id: obj_property.h,v 1.5 1999-08-22 22:52:09 sandervl Exp $ */
    21/*
    32 * Defines the COM interfaces and APIs from ocidl.h related to property
     
    87#ifndef __WINE_WINE_OBJ_PROPERTY_H
    98#define __WINE_WINE_OBJ_PROPERTY_H
    10 
    11 
    12 #include "winbase.h"
    13 #include "wine/obj_oleaut.h" /* for DISPID */
    149
    1510#ifdef __cplusplus
     
    5651
    5752
     53typedef enum tagPROPBAG2_TYPE
     54{
     55        PROPBAG2_TYPE_UNDEFINED = 0,
     56        PROPBAG2_TYPE_DATA = 1,
     57        PROPBAG2_TYPE_URL = 2,
     58        PROPBAG2_TYPE_OBJECT = 3,
     59        PROPBAG2_TYPE_STREAM = 4,
     60        PROPBAG2_TYPE_STORAGE = 5,
     61        PROPBAG2_TYPE_MONIKER = 6
     62} PROPBAG2_TYPE;
     63
     64typedef struct tagPROPBAG2
     65{
     66        DWORD dwType;
     67        VARTYPE vt;
     68        CLIPFORMAT cfType;
     69        DWORD dwHint;
     70        LPOLESTR pstrName;
     71        CLSID clsid;
     72} PROPBAG2;
     73
    5874/*****************************************************************************
    5975 * Predeclare the interfaces
     
    8399typedef struct IPersistPropertyBag IPersistPropertyBag,*LPPERSISTPROPERTYBAG;
    84100 
     101DEFINE_GUID(IID_IPersistPropertyBag2, 0x22f55881, 0x280b, 0x11d0, 0xa8, 0xa9, 0x00, 0xa0, 0xc9, 0x0c, 0x20, 0x04);
     102typedef struct IPersistPropertyBag2 IPersistPropertyBag2,*LPPERSISTPROPERTYBAG2;
     103
    85104DEFINE_GUID(IID_IErrorLog, 0x3127ca40L, 0x446e, 0x11ce, 0x81, 0x35, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51);
    86105typedef struct IErrorLog IErrorLog,*LPERRORLOG;
     
    89108typedef struct IPropertyBag IPropertyBag,*LPPROPERTYBAG;
    90109 
     110DEFINE_GUID(IID_IPropertyBag2, 0x22f55882, 0x280b, 0x11d0, 0xa8, 0xa9, 0x00, 0xa0, 0xc9, 0x0c, 0x20, 0x04);
     111typedef struct IPropertyBag2 IPropertyBag2,*LPPROPERTYBAG2;
     112
    91113DEFINE_GUID(IID_ISpecifyPropertyPages, 0xb196b28b, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
    92114typedef struct ISpecifyPropertyPages ISpecifyPropertyPages,*LPSPECIFYPROPERTYPAGES;
     
    118140#undef ICOM_INTERFACE
    119141
    120 #ifdef ICOM_CINTERFACE
    121142/*** IUnknown methods ***/
    122143#define IPropertyPage_QueryInterface(p,a,b)     ICOM_CALL2(QueryInterface,p,a,b)
     
    135156#define IPropertyPage_Help(p,a)                 ICOM_CALL1(Help,p,a)
    136157#define IPropertyPage_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a)
    137 #endif
    138158                                 
    139159
     
    150170#undef ICOM_INTERFACE
    151171
    152 #ifdef ICOM_CINTERFACE
    153172/*** IUnknown methods ***/
    154173#define IPropertyPage2_QueryInterface(p,a,b)     ICOM_CALL2(QueryInterface,p,a,b)
     
    169188/*** IPropertyPage2 methods ***/
    170189#define IPropertyPage2_EditProperty(p,a)         ICOM_CALL1(EditProperty,p,a)
    171 #endif
    172190                                 
    173191
     
    187205#undef ICOM_INTERFACE
    188206
    189 #ifdef ICOM_CINTERFACE
    190207/*** IUnknown methods ***/
    191208#define IPropertyPageSite_QueryInterface(p,a,b)     ICOM_CALL2(QueryInterface,p,a,b)
     
    197214#define IPropertyPageSite_GetPageContainer(p,a)     ICOM_CALL1(GetPageContainer,p,a)
    198215#define IPropertyPageSite_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a)
    199 #endif
    200216                                                 
    201217
     
    213229#undef ICOM_INTERFACE
    214230
    215 #ifdef ICOM_CINTERFACE
    216231/*** IUnknown methods ***/
    217232#define IPropertyNotifySink_QueryInterface(p,a,b)     ICOM_CALL2(QueryInterface,p,a,b)
     
    221236#define IPropertyNotifySink_OnChanged(p,a)            ICOM_CALL1(OnChanged,p,a)
    222237#define IPropertyNotifySink_OnRequestEdit(p,a)        ICOM_CALL1(OnRequestEdit,p,a)
    223 #endif
    224238
    225239                                 
     
    237251#undef ICOM_INTERFACE
    238252
    239 #ifdef ICOM_CINTERFACE
    240253/*** IUnknown methods ***/
    241254#define ISimpleFrameSite_QueryInterface(p,a,b)     ICOM_CALL2(QueryInterface,p,a,b)
     
    245258#define ISimpleFrameSite_PreMessageFilter(p,a,b,c,d,e,f) ICOM_CALL1(PreMessageFilter,p,a,b,c,d,e,f)
    246259#define ISimpleFrameSite_PostMessageFilter(p,a,b,c,d,e,f) ICOM_CALL1(PostMessageFilter,p,a,b,c,d,e,f)
    247 #endif
    248260
    249261
     
    264276#undef ICOM_INTERFACE
    265277
    266 #ifdef ICOM_CINTERFACE
    267278/*** IUnknown methods ***/
    268279#define IPersistStreamInit_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    277288#define IPersistStreamInit_GetSizeMax(p,a) ICOM_CALL1(GetSizeMax,p,a)
    278289#define IPersistStreamInit_InitNew(p)      ICOM_CALL (InitNew,p)
    279 #endif
    280290
    281291                                 
     
    296306#undef ICOM_INTERFACE
    297307
    298 #ifdef ICOM_CINTERFACE
    299308/*** IUnknown methods ***/
    300309#define IPersistMemory_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    309318#define IPersistMemory_GetSizeMax(p,a)       ICOM_CALL1(GetSizeMax,p,a)
    310319#define IPersistMemory_InitNew(p)            ICOM_CALL (InitNew,p)
    311 #endif
    312320
    313321
     
    326334#undef ICOM_INTERFACE
    327335
    328 #ifdef ICOM_CINTERFACE
    329336/*** IUnknown methods ***/
    330337#define IPersistPropertyBag_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    337344#define IPersistPropertyBag_Load(p,a,b)           ICOM_CALL2(Load,p,a,b)
    338345#define IPersistPropertyBag_Save(p,a,b,c)         ICOM_CALL3(Save,p,a,b,c)
    339 #endif
     346
     347
     348/*****************************************************************************
     349 * IPersistPropertyBag2 interface
     350 */
     351#define ICOM_INTERFACE IPersistPropertyBag2
     352#define IPersistPropertyBag2_METHODS \
     353        ICOM_METHOD (HRESULT,InitNew) \
     354        ICOM_METHOD2(HRESULT,Load, IPropertyBag2*,pPropBag, IErrorLog*,pErrorLog) \
     355        ICOM_METHOD3(HRESULT,Save, IPropertyBag2*,pPropBag, BOOL,fClearDirty, BOOL,fSaveAllProperties) \
     356    ICOM_METHOD (HRESULT,IsDirty)
     357#define IPersistPropertyBag2_IMETHODS \
     358        IPersist_IMETHODS \
     359        IPersistPropertyBag2_METHODS
     360ICOM_DEFINE(IPersistPropertyBag2,IPersist)
     361#undef ICOM_INTERFACE
     362
     363/*** IUnknown methods ***/
     364#define IPersistPropertyBag2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     365#define IPersistPropertyBag2_AddRef(p)             ICOM_CALL (AddRef,p)
     366#define IPersistPropertyBag2_Release(p)            ICOM_CALL (Release,p)
     367/*** IPersist methods ***/
     368#define IPersistPropertyBag2_GetClassID(p,a)       ICOM_CALL1(GetClassID,p,a)
     369/*** IPersistPropertyBag methods ***/
     370#define IPersistPropertyBag2_InitNew(p)            ICOM_CALL (InitNew,p)
     371#define IPersistPropertyBag2_Load(p,a,b)           ICOM_CALL2(Load,p,a,b)
     372#define IPersistPropertyBag2_Save(p,a,b,c)         ICOM_CALL3(Save,p,a,b,c)
     373#define IPersistPropertyBag2_IsDirty(p)            ICON_CALL (IsDirty,p)
    340374
    341375
     
    352386#undef ICOM_INTERFACE
    353387
    354 #ifdef ICOM_CINTERFACE
    355388/*** IUnknown methods ***/
    356389#define IErrorLog_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    359392/*** IErrorLog methods ***/
    360393#define IErrorLog_AddError(p,a,b)       ICOM_CALL2(GetClassID,p,a,b)
    361 #endif
    362394                                 
    363395
     
    375407#undef ICOM_INTERFACE
    376408
    377 #ifdef ICOM_CINTERFACE
    378409/*** IUnknown methods ***/
    379410#define IPropertyBag_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    383414#define IPropertyBag_Read(p,a,b,c)         ICOM_CALL3(Read,p,a,b,c)
    384415#define IPropertyBag_Write(p,a,b)          ICOM_CALL2(Write,p,a,b)
    385 #endif
     416
     417
     418/*****************************************************************************
     419 * IPropertyBag2 interface
     420 */
     421#define ICOM_INTERFACE IPropertyBag2
     422#define IPropertyBag2_METHODS \
     423        ICOM_METHOD5(HRESULT,Read, ULONG,cProperties, PROPBAG2*,pPropBag, IErrorLog*,pErrLog, VARIANT*,pvarValue, HRESULT*,phrError) \
     424        ICOM_METHOD3(HRESULT,Write, ULONG,cProperties, PROPBAG2*,pPropBag, VARIANT*,pvarValue) \
     425    ICOM_METHOD1(HRESULT,CountProperties, ULONG*,pcProperties) \
     426    ICOM_METHOD4(HRESULT,GetPropertyInfo, ULONG,iProperty, ULONG,cProperties, PROPBAG2*,pPropBag, ULONG*,pcProperties) \
     427    ICOM_METHOD4(HRESULT,LoadObject, LPCOLESTR,pstrName, DWORD,dwHint, IUnknown*,pUnkObject, IErrorLog*,pErrLog)
     428#define IPropertyBag2_IMETHODS \
     429        IUnknown_IMETHODS \
     430        IPropertyBag2_METHODS
     431ICOM_DEFINE(IPropertyBag2,IUnknown)
     432#undef ICOM_INTERFACE
     433
     434/*** IUnknown methods ***/
     435#define IPropertyBag2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     436#define IPropertyBag2_AddRef(p)             ICOM_CALL (AddRef,p)
     437#define IPropertyBag2_Release(p)            ICOM_CALL (Release,p)
     438/*** IPropertyBag methods ***/
     439#define IPropertyBag2_Read(p,a,b,c,d,e)     ICOM_CALL5(Read,p,a,b,c,d,e)
     440#define IPropertyBag2_Write(p,a,b,c)        ICOM_CALL3(Write,p,a,b,c)
     441#define IPropertyBag2_CountProperties(p,a)  ICOM_CALL1(CountProperties,p,a)
     442#define IPropertyBag2_GetPropertyInfo(p,a,b,c,d) ICOM_CALL4(GetPropertyInfo,p,a,b,c,d)
     443#define IPropertyBag2_LoadObject(p,a,b,c,d) ICOM_CALL4(LoadObject,p,a,b,c,d)
    386444
    387445
     
    398456#undef ICOM_INTERFACE
    399457
    400 #ifdef ICOM_CINTERFACE
    401458/*** IUnknown methods ***/
    402459#define ISpecifyPropertyPages_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    405462/*** ISpecifyPropertyPages methods ***/
    406463#define ISpecifyPropertyPages_GetPages(p,a)         ICOM_CALL3(GetPages,p,a)
    407 #endif
    408464                                 
    409465
     
    423479#undef ICOM_INTERFACE
    424480
    425 #ifdef ICOM_CINTERFACE
    426481/*** IUnknown methods ***/
    427482#define IPerPropertyBrowsing_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
     
    433488#define IPerPropertyBrowsing_GetPredefinedStrings(p,a,b,c) ICOM_CALL3(GetPredefinedStrings,p,a,b,c)
    434489#define IPerPropertyBrowsing_GetPredefinedValue(p,a,b,c)   ICOM_CALL3(GetPredefinedValue,p,a,b,c)
    435 #endif
    436490
    437491#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.