Changeset 6952 for trunk/include/win/wine/obj_property.h
- Timestamp:
- Oct 6, 2001, 10:56:18 AM (24 years ago)
- 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 $ */2 1 /* 3 2 * Defines the COM interfaces and APIs from ocidl.h related to property … … 8 7 #ifndef __WINE_WINE_OBJ_PROPERTY_H 9 8 #define __WINE_WINE_OBJ_PROPERTY_H 10 11 12 #include "winbase.h"13 #include "wine/obj_oleaut.h" /* for DISPID */14 9 15 10 #ifdef __cplusplus … … 56 51 57 52 53 typedef 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 64 typedef struct tagPROPBAG2 65 { 66 DWORD dwType; 67 VARTYPE vt; 68 CLIPFORMAT cfType; 69 DWORD dwHint; 70 LPOLESTR pstrName; 71 CLSID clsid; 72 } PROPBAG2; 73 58 74 /***************************************************************************** 59 75 * Predeclare the interfaces … … 83 99 typedef struct IPersistPropertyBag IPersistPropertyBag,*LPPERSISTPROPERTYBAG; 84 100 101 DEFINE_GUID(IID_IPersistPropertyBag2, 0x22f55881, 0x280b, 0x11d0, 0xa8, 0xa9, 0x00, 0xa0, 0xc9, 0x0c, 0x20, 0x04); 102 typedef struct IPersistPropertyBag2 IPersistPropertyBag2,*LPPERSISTPROPERTYBAG2; 103 85 104 DEFINE_GUID(IID_IErrorLog, 0x3127ca40L, 0x446e, 0x11ce, 0x81, 0x35, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51); 86 105 typedef struct IErrorLog IErrorLog,*LPERRORLOG; … … 89 108 typedef struct IPropertyBag IPropertyBag,*LPPROPERTYBAG; 90 109 110 DEFINE_GUID(IID_IPropertyBag2, 0x22f55882, 0x280b, 0x11d0, 0xa8, 0xa9, 0x00, 0xa0, 0xc9, 0x0c, 0x20, 0x04); 111 typedef struct IPropertyBag2 IPropertyBag2,*LPPROPERTYBAG2; 112 91 113 DEFINE_GUID(IID_ISpecifyPropertyPages, 0xb196b28b, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07); 92 114 typedef struct ISpecifyPropertyPages ISpecifyPropertyPages,*LPSPECIFYPROPERTYPAGES; … … 118 140 #undef ICOM_INTERFACE 119 141 120 #ifdef ICOM_CINTERFACE121 142 /*** IUnknown methods ***/ 122 143 #define IPropertyPage_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 135 156 #define IPropertyPage_Help(p,a) ICOM_CALL1(Help,p,a) 136 157 #define IPropertyPage_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a) 137 #endif138 158 139 159 … … 150 170 #undef ICOM_INTERFACE 151 171 152 #ifdef ICOM_CINTERFACE153 172 /*** IUnknown methods ***/ 154 173 #define IPropertyPage2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 169 188 /*** IPropertyPage2 methods ***/ 170 189 #define IPropertyPage2_EditProperty(p,a) ICOM_CALL1(EditProperty,p,a) 171 #endif172 190 173 191 … … 187 205 #undef ICOM_INTERFACE 188 206 189 #ifdef ICOM_CINTERFACE190 207 /*** IUnknown methods ***/ 191 208 #define IPropertyPageSite_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 197 214 #define IPropertyPageSite_GetPageContainer(p,a) ICOM_CALL1(GetPageContainer,p,a) 198 215 #define IPropertyPageSite_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a) 199 #endif200 216 201 217 … … 213 229 #undef ICOM_INTERFACE 214 230 215 #ifdef ICOM_CINTERFACE216 231 /*** IUnknown methods ***/ 217 232 #define IPropertyNotifySink_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 221 236 #define IPropertyNotifySink_OnChanged(p,a) ICOM_CALL1(OnChanged,p,a) 222 237 #define IPropertyNotifySink_OnRequestEdit(p,a) ICOM_CALL1(OnRequestEdit,p,a) 223 #endif224 238 225 239 … … 237 251 #undef ICOM_INTERFACE 238 252 239 #ifdef ICOM_CINTERFACE240 253 /*** IUnknown methods ***/ 241 254 #define ISimpleFrameSite_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 245 258 #define ISimpleFrameSite_PreMessageFilter(p,a,b,c,d,e,f) ICOM_CALL1(PreMessageFilter,p,a,b,c,d,e,f) 246 259 #define ISimpleFrameSite_PostMessageFilter(p,a,b,c,d,e,f) ICOM_CALL1(PostMessageFilter,p,a,b,c,d,e,f) 247 #endif248 260 249 261 … … 264 276 #undef ICOM_INTERFACE 265 277 266 #ifdef ICOM_CINTERFACE267 278 /*** IUnknown methods ***/ 268 279 #define IPersistStreamInit_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 277 288 #define IPersistStreamInit_GetSizeMax(p,a) ICOM_CALL1(GetSizeMax,p,a) 278 289 #define IPersistStreamInit_InitNew(p) ICOM_CALL (InitNew,p) 279 #endif280 290 281 291 … … 296 306 #undef ICOM_INTERFACE 297 307 298 #ifdef ICOM_CINTERFACE299 308 /*** IUnknown methods ***/ 300 309 #define IPersistMemory_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 309 318 #define IPersistMemory_GetSizeMax(p,a) ICOM_CALL1(GetSizeMax,p,a) 310 319 #define IPersistMemory_InitNew(p) ICOM_CALL (InitNew,p) 311 #endif312 320 313 321 … … 326 334 #undef ICOM_INTERFACE 327 335 328 #ifdef ICOM_CINTERFACE329 336 /*** IUnknown methods ***/ 330 337 #define IPersistPropertyBag_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 337 344 #define IPersistPropertyBag_Load(p,a,b) ICOM_CALL2(Load,p,a,b) 338 345 #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 360 ICOM_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) 340 374 341 375 … … 352 386 #undef ICOM_INTERFACE 353 387 354 #ifdef ICOM_CINTERFACE355 388 /*** IUnknown methods ***/ 356 389 #define IErrorLog_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 359 392 /*** IErrorLog methods ***/ 360 393 #define IErrorLog_AddError(p,a,b) ICOM_CALL2(GetClassID,p,a,b) 361 #endif362 394 363 395 … … 375 407 #undef ICOM_INTERFACE 376 408 377 #ifdef ICOM_CINTERFACE378 409 /*** IUnknown methods ***/ 379 410 #define IPropertyBag_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 383 414 #define IPropertyBag_Read(p,a,b,c) ICOM_CALL3(Read,p,a,b,c) 384 415 #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 431 ICOM_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) 386 444 387 445 … … 398 456 #undef ICOM_INTERFACE 399 457 400 #ifdef ICOM_CINTERFACE401 458 /*** IUnknown methods ***/ 402 459 #define ISpecifyPropertyPages_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 405 462 /*** ISpecifyPropertyPages methods ***/ 406 463 #define ISpecifyPropertyPages_GetPages(p,a) ICOM_CALL3(GetPages,p,a) 407 #endif408 464 409 465 … … 423 479 #undef ICOM_INTERFACE 424 480 425 #ifdef ICOM_CINTERFACE426 481 /*** IUnknown methods ***/ 427 482 #define IPerPropertyBrowsing_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 433 488 #define IPerPropertyBrowsing_GetPredefinedStrings(p,a,b,c) ICOM_CALL3(GetPredefinedStrings,p,a,b,c) 434 489 #define IPerPropertyBrowsing_GetPredefinedValue(p,a,b,c) ICOM_CALL3(GetPredefinedValue,p,a,b,c) 435 #endif436 490 437 491 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.