1 /*** Autogenerated by WIDL 1.6 from include/docobj.idl - Do not edit ***/ 2 3 #ifndef __REQUIRED_RPCNDR_H_VERSION__ 4 #define __REQUIRED_RPCNDR_H_VERSION__ 475 5 #endif 6 7 #include <rpc.h> 8 #include <rpcndr.h> 9 10 #ifndef COM_NO_WINDOWS_H 11 #include <windows.h> 12 #include <ole2.h> 13 #endif 14 15 #ifndef __docobj_h__ 16 #define __docobj_h__ 17 18 /* Forward declarations */ 19 20 #ifndef __IOleDocument_FWD_DEFINED__ 21 #define __IOleDocument_FWD_DEFINED__ 22 typedef interface IOleDocument IOleDocument; 23 #endif 24 25 #ifndef __IOleDocumentSite_FWD_DEFINED__ 26 #define __IOleDocumentSite_FWD_DEFINED__ 27 typedef interface IOleDocumentSite IOleDocumentSite; 28 #endif 29 30 #ifndef __IOleDocumentView_FWD_DEFINED__ 31 #define __IOleDocumentView_FWD_DEFINED__ 32 typedef interface IOleDocumentView IOleDocumentView; 33 #endif 34 35 #ifndef __IEnumOleDocumentViews_FWD_DEFINED__ 36 #define __IEnumOleDocumentViews_FWD_DEFINED__ 37 typedef interface IEnumOleDocumentViews IEnumOleDocumentViews; 38 #endif 39 40 #ifndef __IContinueCallback_FWD_DEFINED__ 41 #define __IContinueCallback_FWD_DEFINED__ 42 typedef interface IContinueCallback IContinueCallback; 43 #endif 44 45 #ifndef __IPrint_FWD_DEFINED__ 46 #define __IPrint_FWD_DEFINED__ 47 typedef interface IPrint IPrint; 48 #endif 49 50 #ifndef __IOleCommandTarget_FWD_DEFINED__ 51 #define __IOleCommandTarget_FWD_DEFINED__ 52 typedef interface IOleCommandTarget IOleCommandTarget; 53 #endif 54 55 #ifndef __IZoomEvents_FWD_DEFINED__ 56 #define __IZoomEvents_FWD_DEFINED__ 57 typedef interface IZoomEvents IZoomEvents; 58 #endif 59 60 #ifndef __IProtectFocus_FWD_DEFINED__ 61 #define __IProtectFocus_FWD_DEFINED__ 62 typedef interface IProtectFocus IProtectFocus; 63 #endif 64 65 #ifndef __IProtectedModeMenuServices_FWD_DEFINED__ 66 #define __IProtectedModeMenuServices_FWD_DEFINED__ 67 typedef interface IProtectedModeMenuServices IProtectedModeMenuServices; 68 #endif 69 70 /* Headers for imported files */ 71 72 #include <ocidl.h> 73 #include <objidl.h> 74 #include <oleidl.h> 75 #include <oaidl.h> 76 #include <servprov.h> 77 78 #ifdef __cplusplus 79 extern "C" { 80 #endif 81 82 /** 83 * This file is part of the mingw-w64 runtime package. 84 * No warranty is given; refer to the file DISCLAIMER within this package. 85 */ 86 87 #include <winapifamily.h> 88 89 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) 90 91 92 #ifndef __IOleDocument_FWD_DEFINED__ 93 #define __IOleDocument_FWD_DEFINED__ 94 typedef interface IOleDocument IOleDocument; 95 #endif 96 97 #ifndef __IOleDocumentSite_FWD_DEFINED__ 98 #define __IOleDocumentSite_FWD_DEFINED__ 99 typedef interface IOleDocumentSite IOleDocumentSite; 100 #endif 101 102 #ifndef __IOleDocumentView_FWD_DEFINED__ 103 #define __IOleDocumentView_FWD_DEFINED__ 104 typedef interface IOleDocumentView IOleDocumentView; 105 #endif 106 107 #ifndef __IEnumOleDocumentViews_FWD_DEFINED__ 108 #define __IEnumOleDocumentViews_FWD_DEFINED__ 109 typedef interface IEnumOleDocumentViews IEnumOleDocumentViews; 110 #endif 111 112 #ifndef __IContinueCallback_FWD_DEFINED__ 113 #define __IContinueCallback_FWD_DEFINED__ 114 typedef interface IContinueCallback IContinueCallback; 115 #endif 116 117 #ifndef __IPrint_FWD_DEFINED__ 118 #define __IPrint_FWD_DEFINED__ 119 typedef interface IPrint IPrint; 120 #endif 121 122 #ifndef __IOleCommandTarget_FWD_DEFINED__ 123 #define __IOleCommandTarget_FWD_DEFINED__ 124 typedef interface IOleCommandTarget IOleCommandTarget; 125 #endif 126 127 #ifndef __IProtectedModeMenuServices_FWD_DEFINED__ 128 #define __IProtectedModeMenuServices_FWD_DEFINED__ 129 typedef interface IProtectedModeMenuServices IProtectedModeMenuServices; 130 #endif 131 132 133 #ifndef _LPOLEDOCUMENT_DEFINED 134 #define _LPOLEDOCUMENT_DEFINED 135 /***************************************************************************** 136 * IOleDocument interface 137 */ 138 #ifndef __IOleDocument_INTERFACE_DEFINED__ 139 #define __IOleDocument_INTERFACE_DEFINED__ 140 141 typedef IOleDocument *LPOLEDOCUMENT; 142 143 typedef enum __WIDL_docobj_generated_name_00000013 { 144 DOCMISC_CANCREATEMULTIPLEVIEWS = 1, 145 DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2, 146 DOCMISC_CANTOPENEDIT = 4, 147 DOCMISC_NOFILESUPPORT = 8 148 } DOCMISC; 149 150 DEFINE_GUID(IID_IOleDocument, 0xb722bcc5, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 151 #if defined(__cplusplus) && !defined(CINTERFACE) 152 MIDL_INTERFACE("b722bcc5-4e68-101b-a2bc-00aa00404770") 153 IOleDocument : public IUnknown 154 { 155 virtual HRESULT STDMETHODCALLTYPE CreateView( 156 IOleInPlaceSite *pIPSite, 157 IStream *pstm, 158 DWORD dwReserved, 159 IOleDocumentView **ppView) = 0; 160 161 virtual HRESULT STDMETHODCALLTYPE GetDocMiscStatus( 162 DWORD *pdwStatus) = 0; 163 164 virtual HRESULT STDMETHODCALLTYPE EnumViews( 165 IEnumOleDocumentViews **ppEnum, 166 IOleDocumentView **ppView) = 0; 167 168 }; 169 #ifdef __CRT_UUID_DECL 170 __CRT_UUID_DECL(IOleDocument, 0xb722bcc5, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 171 #endif 172 #else 173 typedef struct IOleDocumentVtbl { 174 BEGIN_INTERFACE 175 176 /*** IUnknown methods ***/ 177 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 178 IOleDocument* This, 179 REFIID riid, 180 void **ppvObject); 181 182 ULONG (STDMETHODCALLTYPE *AddRef)( 183 IOleDocument* This); 184 185 ULONG (STDMETHODCALLTYPE *Release)( 186 IOleDocument* This); 187 188 /*** IOleDocument methods ***/ 189 HRESULT (STDMETHODCALLTYPE *CreateView)( 190 IOleDocument* This, 191 IOleInPlaceSite *pIPSite, 192 IStream *pstm, 193 DWORD dwReserved, 194 IOleDocumentView **ppView); 195 196 HRESULT (STDMETHODCALLTYPE *GetDocMiscStatus)( 197 IOleDocument* This, 198 DWORD *pdwStatus); 199 200 HRESULT (STDMETHODCALLTYPE *EnumViews)( 201 IOleDocument* This, 202 IEnumOleDocumentViews **ppEnum, 203 IOleDocumentView **ppView); 204 205 END_INTERFACE 206 } IOleDocumentVtbl; 207 interface IOleDocument { 208 CONST_VTBL IOleDocumentVtbl* lpVtbl; 209 }; 210 211 #ifdef COBJMACROS 212 #ifndef WIDL_C_INLINE_WRAPPERS 213 /*** IUnknown methods ***/ 214 #define IOleDocument_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 215 #define IOleDocument_AddRef(This) (This)->lpVtbl->AddRef(This) 216 #define IOleDocument_Release(This) (This)->lpVtbl->Release(This) 217 /*** IOleDocument methods ***/ 218 #define IOleDocument_CreateView(This,pIPSite,pstm,dwReserved,ppView) (This)->lpVtbl->CreateView(This,pIPSite,pstm,dwReserved,ppView) 219 #define IOleDocument_GetDocMiscStatus(This,pdwStatus) (This)->lpVtbl->GetDocMiscStatus(This,pdwStatus) 220 #define IOleDocument_EnumViews(This,ppEnum,ppView) (This)->lpVtbl->EnumViews(This,ppEnum,ppView) 221 #else 222 /*** IUnknown methods ***/ 223 static FORCEINLINE HRESULT IOleDocument_QueryInterface(IOleDocument* This,REFIID riid,void **ppvObject) { 224 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 225 } 226 static FORCEINLINE ULONG IOleDocument_AddRef(IOleDocument* This) { 227 return This->lpVtbl->AddRef(This); 228 } 229 static FORCEINLINE ULONG IOleDocument_Release(IOleDocument* This) { 230 return This->lpVtbl->Release(This); 231 } 232 /*** IOleDocument methods ***/ 233 static FORCEINLINE HRESULT IOleDocument_CreateView(IOleDocument* This,IOleInPlaceSite *pIPSite,IStream *pstm,DWORD dwReserved,IOleDocumentView **ppView) { 234 return This->lpVtbl->CreateView(This,pIPSite,pstm,dwReserved,ppView); 235 } 236 static FORCEINLINE HRESULT IOleDocument_GetDocMiscStatus(IOleDocument* This,DWORD *pdwStatus) { 237 return This->lpVtbl->GetDocMiscStatus(This,pdwStatus); 238 } 239 static FORCEINLINE HRESULT IOleDocument_EnumViews(IOleDocument* This,IEnumOleDocumentViews **ppEnum,IOleDocumentView **ppView) { 240 return This->lpVtbl->EnumViews(This,ppEnum,ppView); 241 } 242 #endif 243 #endif 244 245 #endif 246 247 HRESULT STDMETHODCALLTYPE IOleDocument_CreateView_Proxy( 248 IOleDocument* This, 249 IOleInPlaceSite *pIPSite, 250 IStream *pstm, 251 DWORD dwReserved, 252 IOleDocumentView **ppView); 253 void __RPC_STUB IOleDocument_CreateView_Stub( 254 IRpcStubBuffer* This, 255 IRpcChannelBuffer* pRpcChannelBuffer, 256 PRPC_MESSAGE pRpcMessage, 257 DWORD* pdwStubPhase); 258 HRESULT STDMETHODCALLTYPE IOleDocument_GetDocMiscStatus_Proxy( 259 IOleDocument* This, 260 DWORD *pdwStatus); 261 void __RPC_STUB IOleDocument_GetDocMiscStatus_Stub( 262 IRpcStubBuffer* This, 263 IRpcChannelBuffer* pRpcChannelBuffer, 264 PRPC_MESSAGE pRpcMessage, 265 DWORD* pdwStubPhase); 266 HRESULT STDMETHODCALLTYPE IOleDocument_EnumViews_Proxy( 267 IOleDocument* This, 268 IEnumOleDocumentViews **ppEnum, 269 IOleDocumentView **ppView); 270 void __RPC_STUB IOleDocument_EnumViews_Stub( 271 IRpcStubBuffer* This, 272 IRpcChannelBuffer* pRpcChannelBuffer, 273 PRPC_MESSAGE pRpcMessage, 274 DWORD* pdwStubPhase); 275 276 #endif /* __IOleDocument_INTERFACE_DEFINED__ */ 277 278 #endif 279 280 #ifndef _LPOLEDOCUMENTSITE_DEFINED 281 #define _LPOLEDOCUMENTSITE_DEFINED 282 /***************************************************************************** 283 * IOleDocumentSite interface 284 */ 285 #ifndef __IOleDocumentSite_INTERFACE_DEFINED__ 286 #define __IOleDocumentSite_INTERFACE_DEFINED__ 287 288 typedef IOleDocumentSite *LPOLEDOCUMENTSITE; 289 290 DEFINE_GUID(IID_IOleDocumentSite, 0xb722bcc7, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 291 #if defined(__cplusplus) && !defined(CINTERFACE) 292 MIDL_INTERFACE("b722bcc7-4e68-101b-a2bc-00aa00404770") 293 IOleDocumentSite : public IUnknown 294 { 295 virtual HRESULT STDMETHODCALLTYPE ActivateMe( 296 IOleDocumentView *pViewToActivate) = 0; 297 298 }; 299 #ifdef __CRT_UUID_DECL 300 __CRT_UUID_DECL(IOleDocumentSite, 0xb722bcc7, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 301 #endif 302 #else 303 typedef struct IOleDocumentSiteVtbl { 304 BEGIN_INTERFACE 305 306 /*** IUnknown methods ***/ 307 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 308 IOleDocumentSite* This, 309 REFIID riid, 310 void **ppvObject); 311 312 ULONG (STDMETHODCALLTYPE *AddRef)( 313 IOleDocumentSite* This); 314 315 ULONG (STDMETHODCALLTYPE *Release)( 316 IOleDocumentSite* This); 317 318 /*** IOleDocumentSite methods ***/ 319 HRESULT (STDMETHODCALLTYPE *ActivateMe)( 320 IOleDocumentSite* This, 321 IOleDocumentView *pViewToActivate); 322 323 END_INTERFACE 324 } IOleDocumentSiteVtbl; 325 interface IOleDocumentSite { 326 CONST_VTBL IOleDocumentSiteVtbl* lpVtbl; 327 }; 328 329 #ifdef COBJMACROS 330 #ifndef WIDL_C_INLINE_WRAPPERS 331 /*** IUnknown methods ***/ 332 #define IOleDocumentSite_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 333 #define IOleDocumentSite_AddRef(This) (This)->lpVtbl->AddRef(This) 334 #define IOleDocumentSite_Release(This) (This)->lpVtbl->Release(This) 335 /*** IOleDocumentSite methods ***/ 336 #define IOleDocumentSite_ActivateMe(This,pViewToActivate) (This)->lpVtbl->ActivateMe(This,pViewToActivate) 337 #else 338 /*** IUnknown methods ***/ 339 static FORCEINLINE HRESULT IOleDocumentSite_QueryInterface(IOleDocumentSite* This,REFIID riid,void **ppvObject) { 340 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 341 } 342 static FORCEINLINE ULONG IOleDocumentSite_AddRef(IOleDocumentSite* This) { 343 return This->lpVtbl->AddRef(This); 344 } 345 static FORCEINLINE ULONG IOleDocumentSite_Release(IOleDocumentSite* This) { 346 return This->lpVtbl->Release(This); 347 } 348 /*** IOleDocumentSite methods ***/ 349 static FORCEINLINE HRESULT IOleDocumentSite_ActivateMe(IOleDocumentSite* This,IOleDocumentView *pViewToActivate) { 350 return This->lpVtbl->ActivateMe(This,pViewToActivate); 351 } 352 #endif 353 #endif 354 355 #endif 356 357 HRESULT STDMETHODCALLTYPE IOleDocumentSite_ActivateMe_Proxy( 358 IOleDocumentSite* This, 359 IOleDocumentView *pViewToActivate); 360 void __RPC_STUB IOleDocumentSite_ActivateMe_Stub( 361 IRpcStubBuffer* This, 362 IRpcChannelBuffer* pRpcChannelBuffer, 363 PRPC_MESSAGE pRpcMessage, 364 DWORD* pdwStubPhase); 365 366 #endif /* __IOleDocumentSite_INTERFACE_DEFINED__ */ 367 368 #endif 369 370 #ifndef _LPOLEDOCUMENTVIEW_DEFINED 371 #define _LPOLEDOCUMENTVIEW_DEFINED 372 /***************************************************************************** 373 * IOleDocumentView interface 374 */ 375 #ifndef __IOleDocumentView_INTERFACE_DEFINED__ 376 #define __IOleDocumentView_INTERFACE_DEFINED__ 377 378 typedef IOleDocumentView *LPOLEDOCUMENTVIEW; 379 380 DEFINE_GUID(IID_IOleDocumentView, 0xb722bcc6, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 381 #if defined(__cplusplus) && !defined(CINTERFACE) 382 MIDL_INTERFACE("b722bcc6-4e68-101b-a2bc-00aa00404770") 383 IOleDocumentView : public IUnknown 384 { 385 virtual HRESULT STDMETHODCALLTYPE SetInPlaceSite( 386 IOleInPlaceSite *pIPSite) = 0; 387 388 virtual HRESULT STDMETHODCALLTYPE GetInPlaceSite( 389 IOleInPlaceSite **ppIPSite) = 0; 390 391 virtual HRESULT STDMETHODCALLTYPE GetDocument( 392 IUnknown **ppunk) = 0; 393 394 virtual HRESULT STDMETHODCALLTYPE SetRect( 395 LPRECT prcView) = 0; 396 397 virtual HRESULT STDMETHODCALLTYPE GetRect( 398 LPRECT prcView) = 0; 399 400 virtual HRESULT STDMETHODCALLTYPE SetRectComplex( 401 LPRECT prcView, 402 LPRECT prcHScroll, 403 LPRECT prcVScroll, 404 LPRECT prcSizeBox) = 0; 405 406 virtual HRESULT STDMETHODCALLTYPE Show( 407 WINBOOL fShow) = 0; 408 409 virtual HRESULT STDMETHODCALLTYPE UIActivate( 410 WINBOOL fUIActivate) = 0; 411 412 virtual HRESULT STDMETHODCALLTYPE Open( 413 ) = 0; 414 415 virtual HRESULT STDMETHODCALLTYPE CloseView( 416 DWORD dwReserved) = 0; 417 418 virtual HRESULT STDMETHODCALLTYPE SaveViewState( 419 LPSTREAM pstm) = 0; 420 421 virtual HRESULT STDMETHODCALLTYPE ApplyViewState( 422 LPSTREAM pstm) = 0; 423 424 virtual HRESULT STDMETHODCALLTYPE Clone( 425 IOleInPlaceSite *pIPSiteNew, 426 IOleDocumentView **ppViewNew) = 0; 427 428 }; 429 #ifdef __CRT_UUID_DECL 430 __CRT_UUID_DECL(IOleDocumentView, 0xb722bcc6, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 431 #endif 432 #else 433 typedef struct IOleDocumentViewVtbl { 434 BEGIN_INTERFACE 435 436 /*** IUnknown methods ***/ 437 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 438 IOleDocumentView* This, 439 REFIID riid, 440 void **ppvObject); 441 442 ULONG (STDMETHODCALLTYPE *AddRef)( 443 IOleDocumentView* This); 444 445 ULONG (STDMETHODCALLTYPE *Release)( 446 IOleDocumentView* This); 447 448 /*** IOleDocumentView methods ***/ 449 HRESULT (STDMETHODCALLTYPE *SetInPlaceSite)( 450 IOleDocumentView* This, 451 IOleInPlaceSite *pIPSite); 452 453 HRESULT (STDMETHODCALLTYPE *GetInPlaceSite)( 454 IOleDocumentView* This, 455 IOleInPlaceSite **ppIPSite); 456 457 HRESULT (STDMETHODCALLTYPE *GetDocument)( 458 IOleDocumentView* This, 459 IUnknown **ppunk); 460 461 HRESULT (STDMETHODCALLTYPE *SetRect)( 462 IOleDocumentView* This, 463 LPRECT prcView); 464 465 HRESULT (STDMETHODCALLTYPE *GetRect)( 466 IOleDocumentView* This, 467 LPRECT prcView); 468 469 HRESULT (STDMETHODCALLTYPE *SetRectComplex)( 470 IOleDocumentView* This, 471 LPRECT prcView, 472 LPRECT prcHScroll, 473 LPRECT prcVScroll, 474 LPRECT prcSizeBox); 475 476 HRESULT (STDMETHODCALLTYPE *Show)( 477 IOleDocumentView* This, 478 WINBOOL fShow); 479 480 HRESULT (STDMETHODCALLTYPE *UIActivate)( 481 IOleDocumentView* This, 482 WINBOOL fUIActivate); 483 484 HRESULT (STDMETHODCALLTYPE *Open)( 485 IOleDocumentView* This); 486 487 HRESULT (STDMETHODCALLTYPE *CloseView)( 488 IOleDocumentView* This, 489 DWORD dwReserved); 490 491 HRESULT (STDMETHODCALLTYPE *SaveViewState)( 492 IOleDocumentView* This, 493 LPSTREAM pstm); 494 495 HRESULT (STDMETHODCALLTYPE *ApplyViewState)( 496 IOleDocumentView* This, 497 LPSTREAM pstm); 498 499 HRESULT (STDMETHODCALLTYPE *Clone)( 500 IOleDocumentView* This, 501 IOleInPlaceSite *pIPSiteNew, 502 IOleDocumentView **ppViewNew); 503 504 END_INTERFACE 505 } IOleDocumentViewVtbl; 506 interface IOleDocumentView { 507 CONST_VTBL IOleDocumentViewVtbl* lpVtbl; 508 }; 509 510 #ifdef COBJMACROS 511 #ifndef WIDL_C_INLINE_WRAPPERS 512 /*** IUnknown methods ***/ 513 #define IOleDocumentView_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 514 #define IOleDocumentView_AddRef(This) (This)->lpVtbl->AddRef(This) 515 #define IOleDocumentView_Release(This) (This)->lpVtbl->Release(This) 516 /*** IOleDocumentView methods ***/ 517 #define IOleDocumentView_SetInPlaceSite(This,pIPSite) (This)->lpVtbl->SetInPlaceSite(This,pIPSite) 518 #define IOleDocumentView_GetInPlaceSite(This,ppIPSite) (This)->lpVtbl->GetInPlaceSite(This,ppIPSite) 519 #define IOleDocumentView_GetDocument(This,ppunk) (This)->lpVtbl->GetDocument(This,ppunk) 520 #define IOleDocumentView_SetRect(This,prcView) (This)->lpVtbl->SetRect(This,prcView) 521 #define IOleDocumentView_GetRect(This,prcView) (This)->lpVtbl->GetRect(This,prcView) 522 #define IOleDocumentView_SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox) (This)->lpVtbl->SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox) 523 #define IOleDocumentView_Show(This,fShow) (This)->lpVtbl->Show(This,fShow) 524 #define IOleDocumentView_UIActivate(This,fUIActivate) (This)->lpVtbl->UIActivate(This,fUIActivate) 525 #define IOleDocumentView_Open(This) (This)->lpVtbl->Open(This) 526 #define IOleDocumentView_CloseView(This,dwReserved) (This)->lpVtbl->CloseView(This,dwReserved) 527 #define IOleDocumentView_SaveViewState(This,pstm) (This)->lpVtbl->SaveViewState(This,pstm) 528 #define IOleDocumentView_ApplyViewState(This,pstm) (This)->lpVtbl->ApplyViewState(This,pstm) 529 #define IOleDocumentView_Clone(This,pIPSiteNew,ppViewNew) (This)->lpVtbl->Clone(This,pIPSiteNew,ppViewNew) 530 #else 531 /*** IUnknown methods ***/ 532 static FORCEINLINE HRESULT IOleDocumentView_QueryInterface(IOleDocumentView* This,REFIID riid,void **ppvObject) { 533 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 534 } 535 static FORCEINLINE ULONG IOleDocumentView_AddRef(IOleDocumentView* This) { 536 return This->lpVtbl->AddRef(This); 537 } 538 static FORCEINLINE ULONG IOleDocumentView_Release(IOleDocumentView* This) { 539 return This->lpVtbl->Release(This); 540 } 541 /*** IOleDocumentView methods ***/ 542 static FORCEINLINE HRESULT IOleDocumentView_SetInPlaceSite(IOleDocumentView* This,IOleInPlaceSite *pIPSite) { 543 return This->lpVtbl->SetInPlaceSite(This,pIPSite); 544 } 545 static FORCEINLINE HRESULT IOleDocumentView_GetInPlaceSite(IOleDocumentView* This,IOleInPlaceSite **ppIPSite) { 546 return This->lpVtbl->GetInPlaceSite(This,ppIPSite); 547 } 548 static FORCEINLINE HRESULT IOleDocumentView_GetDocument(IOleDocumentView* This,IUnknown **ppunk) { 549 return This->lpVtbl->GetDocument(This,ppunk); 550 } 551 static FORCEINLINE HRESULT IOleDocumentView_SetRect(IOleDocumentView* This,LPRECT prcView) { 552 return This->lpVtbl->SetRect(This,prcView); 553 } 554 static FORCEINLINE HRESULT IOleDocumentView_GetRect(IOleDocumentView* This,LPRECT prcView) { 555 return This->lpVtbl->GetRect(This,prcView); 556 } 557 static FORCEINLINE HRESULT IOleDocumentView_SetRectComplex(IOleDocumentView* This,LPRECT prcView,LPRECT prcHScroll,LPRECT prcVScroll,LPRECT prcSizeBox) { 558 return This->lpVtbl->SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox); 559 } 560 static FORCEINLINE HRESULT IOleDocumentView_Show(IOleDocumentView* This,WINBOOL fShow) { 561 return This->lpVtbl->Show(This,fShow); 562 } 563 static FORCEINLINE HRESULT IOleDocumentView_UIActivate(IOleDocumentView* This,WINBOOL fUIActivate) { 564 return This->lpVtbl->UIActivate(This,fUIActivate); 565 } 566 static FORCEINLINE HRESULT IOleDocumentView_Open(IOleDocumentView* This) { 567 return This->lpVtbl->Open(This); 568 } 569 static FORCEINLINE HRESULT IOleDocumentView_CloseView(IOleDocumentView* This,DWORD dwReserved) { 570 return This->lpVtbl->CloseView(This,dwReserved); 571 } 572 static FORCEINLINE HRESULT IOleDocumentView_SaveViewState(IOleDocumentView* This,LPSTREAM pstm) { 573 return This->lpVtbl->SaveViewState(This,pstm); 574 } 575 static FORCEINLINE HRESULT IOleDocumentView_ApplyViewState(IOleDocumentView* This,LPSTREAM pstm) { 576 return This->lpVtbl->ApplyViewState(This,pstm); 577 } 578 static FORCEINLINE HRESULT IOleDocumentView_Clone(IOleDocumentView* This,IOleInPlaceSite *pIPSiteNew,IOleDocumentView **ppViewNew) { 579 return This->lpVtbl->Clone(This,pIPSiteNew,ppViewNew); 580 } 581 #endif 582 #endif 583 584 #endif 585 586 HRESULT STDMETHODCALLTYPE IOleDocumentView_SetInPlaceSite_Proxy( 587 IOleDocumentView* This, 588 IOleInPlaceSite *pIPSite); 589 void __RPC_STUB IOleDocumentView_SetInPlaceSite_Stub( 590 IRpcStubBuffer* This, 591 IRpcChannelBuffer* pRpcChannelBuffer, 592 PRPC_MESSAGE pRpcMessage, 593 DWORD* pdwStubPhase); 594 HRESULT STDMETHODCALLTYPE IOleDocumentView_GetInPlaceSite_Proxy( 595 IOleDocumentView* This, 596 IOleInPlaceSite **ppIPSite); 597 void __RPC_STUB IOleDocumentView_GetInPlaceSite_Stub( 598 IRpcStubBuffer* This, 599 IRpcChannelBuffer* pRpcChannelBuffer, 600 PRPC_MESSAGE pRpcMessage, 601 DWORD* pdwStubPhase); 602 HRESULT STDMETHODCALLTYPE IOleDocumentView_GetDocument_Proxy( 603 IOleDocumentView* This, 604 IUnknown **ppunk); 605 void __RPC_STUB IOleDocumentView_GetDocument_Stub( 606 IRpcStubBuffer* This, 607 IRpcChannelBuffer* pRpcChannelBuffer, 608 PRPC_MESSAGE pRpcMessage, 609 DWORD* pdwStubPhase); 610 HRESULT STDMETHODCALLTYPE IOleDocumentView_SetRect_Proxy( 611 IOleDocumentView* This, 612 LPRECT prcView); 613 void __RPC_STUB IOleDocumentView_SetRect_Stub( 614 IRpcStubBuffer* This, 615 IRpcChannelBuffer* pRpcChannelBuffer, 616 PRPC_MESSAGE pRpcMessage, 617 DWORD* pdwStubPhase); 618 HRESULT STDMETHODCALLTYPE IOleDocumentView_GetRect_Proxy( 619 IOleDocumentView* This, 620 LPRECT prcView); 621 void __RPC_STUB IOleDocumentView_GetRect_Stub( 622 IRpcStubBuffer* This, 623 IRpcChannelBuffer* pRpcChannelBuffer, 624 PRPC_MESSAGE pRpcMessage, 625 DWORD* pdwStubPhase); 626 HRESULT STDMETHODCALLTYPE IOleDocumentView_SetRectComplex_Proxy( 627 IOleDocumentView* This, 628 LPRECT prcView, 629 LPRECT prcHScroll, 630 LPRECT prcVScroll, 631 LPRECT prcSizeBox); 632 void __RPC_STUB IOleDocumentView_SetRectComplex_Stub( 633 IRpcStubBuffer* This, 634 IRpcChannelBuffer* pRpcChannelBuffer, 635 PRPC_MESSAGE pRpcMessage, 636 DWORD* pdwStubPhase); 637 HRESULT STDMETHODCALLTYPE IOleDocumentView_Show_Proxy( 638 IOleDocumentView* This, 639 WINBOOL fShow); 640 void __RPC_STUB IOleDocumentView_Show_Stub( 641 IRpcStubBuffer* This, 642 IRpcChannelBuffer* pRpcChannelBuffer, 643 PRPC_MESSAGE pRpcMessage, 644 DWORD* pdwStubPhase); 645 HRESULT STDMETHODCALLTYPE IOleDocumentView_UIActivate_Proxy( 646 IOleDocumentView* This, 647 WINBOOL fUIActivate); 648 void __RPC_STUB IOleDocumentView_UIActivate_Stub( 649 IRpcStubBuffer* This, 650 IRpcChannelBuffer* pRpcChannelBuffer, 651 PRPC_MESSAGE pRpcMessage, 652 DWORD* pdwStubPhase); 653 HRESULT STDMETHODCALLTYPE IOleDocumentView_Open_Proxy( 654 IOleDocumentView* This); 655 void __RPC_STUB IOleDocumentView_Open_Stub( 656 IRpcStubBuffer* This, 657 IRpcChannelBuffer* pRpcChannelBuffer, 658 PRPC_MESSAGE pRpcMessage, 659 DWORD* pdwStubPhase); 660 HRESULT STDMETHODCALLTYPE IOleDocumentView_CloseView_Proxy( 661 IOleDocumentView* This, 662 DWORD dwReserved); 663 void __RPC_STUB IOleDocumentView_CloseView_Stub( 664 IRpcStubBuffer* This, 665 IRpcChannelBuffer* pRpcChannelBuffer, 666 PRPC_MESSAGE pRpcMessage, 667 DWORD* pdwStubPhase); 668 HRESULT STDMETHODCALLTYPE IOleDocumentView_SaveViewState_Proxy( 669 IOleDocumentView* This, 670 LPSTREAM pstm); 671 void __RPC_STUB IOleDocumentView_SaveViewState_Stub( 672 IRpcStubBuffer* This, 673 IRpcChannelBuffer* pRpcChannelBuffer, 674 PRPC_MESSAGE pRpcMessage, 675 DWORD* pdwStubPhase); 676 HRESULT STDMETHODCALLTYPE IOleDocumentView_ApplyViewState_Proxy( 677 IOleDocumentView* This, 678 LPSTREAM pstm); 679 void __RPC_STUB IOleDocumentView_ApplyViewState_Stub( 680 IRpcStubBuffer* This, 681 IRpcChannelBuffer* pRpcChannelBuffer, 682 PRPC_MESSAGE pRpcMessage, 683 DWORD* pdwStubPhase); 684 HRESULT STDMETHODCALLTYPE IOleDocumentView_Clone_Proxy( 685 IOleDocumentView* This, 686 IOleInPlaceSite *pIPSiteNew, 687 IOleDocumentView **ppViewNew); 688 void __RPC_STUB IOleDocumentView_Clone_Stub( 689 IRpcStubBuffer* This, 690 IRpcChannelBuffer* pRpcChannelBuffer, 691 PRPC_MESSAGE pRpcMessage, 692 DWORD* pdwStubPhase); 693 694 #endif /* __IOleDocumentView_INTERFACE_DEFINED__ */ 695 696 #endif 697 698 #ifndef _LPENUMOLEDOCUMENTVIEWS_DEFINED 699 #define _LPENUMOLEDOCUMENTVIEWS_DEFINED 700 /***************************************************************************** 701 * IEnumOleDocumentViews interface 702 */ 703 #ifndef __IEnumOleDocumentViews_INTERFACE_DEFINED__ 704 #define __IEnumOleDocumentViews_INTERFACE_DEFINED__ 705 706 typedef IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS; 707 708 DEFINE_GUID(IID_IEnumOleDocumentViews, 0xb722bcc8, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 709 #if defined(__cplusplus) && !defined(CINTERFACE) 710 MIDL_INTERFACE("b722bcc8-4e68-101b-a2bc-00aa00404770") 711 IEnumOleDocumentViews : public IUnknown 712 { 713 virtual HRESULT __stdcall Next( 714 ULONG cViews, 715 IOleDocumentView **rgpView, 716 ULONG *pcFetched) = 0; 717 718 virtual HRESULT STDMETHODCALLTYPE Skip( 719 ULONG cViews) = 0; 720 721 virtual HRESULT STDMETHODCALLTYPE Reset( 722 ) = 0; 723 724 virtual HRESULT STDMETHODCALLTYPE Clone( 725 IEnumOleDocumentViews **ppEnum) = 0; 726 727 }; 728 #ifdef __CRT_UUID_DECL 729 __CRT_UUID_DECL(IEnumOleDocumentViews, 0xb722bcc8, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 730 #endif 731 #else 732 typedef struct IEnumOleDocumentViewsVtbl { 733 BEGIN_INTERFACE 734 735 /*** IUnknown methods ***/ 736 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 737 IEnumOleDocumentViews* This, 738 REFIID riid, 739 void **ppvObject); 740 741 ULONG (STDMETHODCALLTYPE *AddRef)( 742 IEnumOleDocumentViews* This); 743 744 ULONG (STDMETHODCALLTYPE *Release)( 745 IEnumOleDocumentViews* This); 746 747 /*** IEnumOleDocumentViews methods ***/ 748 HRESULT (__stdcall *Next)( 749 IEnumOleDocumentViews* This, 750 ULONG cViews, 751 IOleDocumentView **rgpView, 752 ULONG *pcFetched); 753 754 HRESULT (STDMETHODCALLTYPE *Skip)( 755 IEnumOleDocumentViews* This, 756 ULONG cViews); 757 758 HRESULT (STDMETHODCALLTYPE *Reset)( 759 IEnumOleDocumentViews* This); 760 761 HRESULT (STDMETHODCALLTYPE *Clone)( 762 IEnumOleDocumentViews* This, 763 IEnumOleDocumentViews **ppEnum); 764 765 END_INTERFACE 766 } IEnumOleDocumentViewsVtbl; 767 interface IEnumOleDocumentViews { 768 CONST_VTBL IEnumOleDocumentViewsVtbl* lpVtbl; 769 }; 770 771 #ifdef COBJMACROS 772 #ifndef WIDL_C_INLINE_WRAPPERS 773 /*** IUnknown methods ***/ 774 #define IEnumOleDocumentViews_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 775 #define IEnumOleDocumentViews_AddRef(This) (This)->lpVtbl->AddRef(This) 776 #define IEnumOleDocumentViews_Release(This) (This)->lpVtbl->Release(This) 777 /*** IEnumOleDocumentViews methods ***/ 778 #define IEnumOleDocumentViews_Next(This,cViews,rgpView,pcFetched) (This)->lpVtbl->Next(This,cViews,rgpView,pcFetched) 779 #define IEnumOleDocumentViews_Skip(This,cViews) (This)->lpVtbl->Skip(This,cViews) 780 #define IEnumOleDocumentViews_Reset(This) (This)->lpVtbl->Reset(This) 781 #define IEnumOleDocumentViews_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum) 782 #else 783 /*** IUnknown methods ***/ 784 static FORCEINLINE HRESULT IEnumOleDocumentViews_QueryInterface(IEnumOleDocumentViews* This,REFIID riid,void **ppvObject) { 785 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 786 } 787 static FORCEINLINE ULONG IEnumOleDocumentViews_AddRef(IEnumOleDocumentViews* This) { 788 return This->lpVtbl->AddRef(This); 789 } 790 static FORCEINLINE ULONG IEnumOleDocumentViews_Release(IEnumOleDocumentViews* This) { 791 return This->lpVtbl->Release(This); 792 } 793 /*** IEnumOleDocumentViews methods ***/ 794 static FORCEINLINE HRESULT IEnumOleDocumentViews_Next(IEnumOleDocumentViews* This,ULONG cViews,IOleDocumentView **rgpView,ULONG *pcFetched) { 795 return This->lpVtbl->Next(This,cViews,rgpView,pcFetched); 796 } 797 static FORCEINLINE HRESULT IEnumOleDocumentViews_Skip(IEnumOleDocumentViews* This,ULONG cViews) { 798 return This->lpVtbl->Skip(This,cViews); 799 } 800 static FORCEINLINE HRESULT IEnumOleDocumentViews_Reset(IEnumOleDocumentViews* This) { 801 return This->lpVtbl->Reset(This); 802 } 803 static FORCEINLINE HRESULT IEnumOleDocumentViews_Clone(IEnumOleDocumentViews* This,IEnumOleDocumentViews **ppEnum) { 804 return This->lpVtbl->Clone(This,ppEnum); 805 } 806 #endif 807 #endif 808 809 #endif 810 811 HRESULT __stdcall IEnumOleDocumentViews_RemoteNext_Proxy( 812 IEnumOleDocumentViews* This, 813 ULONG cViews, 814 IOleDocumentView **rgpView, 815 ULONG *pcFetched); 816 void __RPC_STUB IEnumOleDocumentViews_RemoteNext_Stub( 817 IRpcStubBuffer* This, 818 IRpcChannelBuffer* pRpcChannelBuffer, 819 PRPC_MESSAGE pRpcMessage, 820 DWORD* pdwStubPhase); 821 HRESULT STDMETHODCALLTYPE IEnumOleDocumentViews_Skip_Proxy( 822 IEnumOleDocumentViews* This, 823 ULONG cViews); 824 void __RPC_STUB IEnumOleDocumentViews_Skip_Stub( 825 IRpcStubBuffer* This, 826 IRpcChannelBuffer* pRpcChannelBuffer, 827 PRPC_MESSAGE pRpcMessage, 828 DWORD* pdwStubPhase); 829 HRESULT STDMETHODCALLTYPE IEnumOleDocumentViews_Reset_Proxy( 830 IEnumOleDocumentViews* This); 831 void __RPC_STUB IEnumOleDocumentViews_Reset_Stub( 832 IRpcStubBuffer* This, 833 IRpcChannelBuffer* pRpcChannelBuffer, 834 PRPC_MESSAGE pRpcMessage, 835 DWORD* pdwStubPhase); 836 HRESULT STDMETHODCALLTYPE IEnumOleDocumentViews_Clone_Proxy( 837 IEnumOleDocumentViews* This, 838 IEnumOleDocumentViews **ppEnum); 839 void __RPC_STUB IEnumOleDocumentViews_Clone_Stub( 840 IRpcStubBuffer* This, 841 IRpcChannelBuffer* pRpcChannelBuffer, 842 PRPC_MESSAGE pRpcMessage, 843 DWORD* pdwStubPhase); 844 HRESULT CALLBACK IEnumOleDocumentViews_Next_Proxy( 845 IEnumOleDocumentViews* This, 846 ULONG cViews, 847 IOleDocumentView **rgpView, 848 ULONG *pcFetched); 849 HRESULT __RPC_STUB IEnumOleDocumentViews_Next_Stub( 850 IEnumOleDocumentViews* This, 851 ULONG cViews, 852 IOleDocumentView **rgpView, 853 ULONG *pcFetched); 854 855 #endif /* __IEnumOleDocumentViews_INTERFACE_DEFINED__ */ 856 857 #endif 858 859 #ifndef _LPCONTINUECALLBACK_DEFINED 860 #define _LPCONTINUECALLBACK_DEFINED 861 /***************************************************************************** 862 * IContinueCallback interface 863 */ 864 #ifndef __IContinueCallback_INTERFACE_DEFINED__ 865 #define __IContinueCallback_INTERFACE_DEFINED__ 866 867 typedef IContinueCallback *LPCONTINUECALLBACK; 868 869 DEFINE_GUID(IID_IContinueCallback, 0xb722bcca, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 870 #if defined(__cplusplus) && !defined(CINTERFACE) 871 MIDL_INTERFACE("b722bcca-4e68-101b-a2bc-00aa00404770") 872 IContinueCallback : public IUnknown 873 { 874 virtual HRESULT STDMETHODCALLTYPE FContinue( 875 ) = 0; 876 877 virtual HRESULT STDMETHODCALLTYPE FContinuePrinting( 878 LONG nCntPrinted, 879 LONG nCurPage, 880 wchar_t *pwszPrintStatus) = 0; 881 882 }; 883 #ifdef __CRT_UUID_DECL 884 __CRT_UUID_DECL(IContinueCallback, 0xb722bcca, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 885 #endif 886 #else 887 typedef struct IContinueCallbackVtbl { 888 BEGIN_INTERFACE 889 890 /*** IUnknown methods ***/ 891 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 892 IContinueCallback* This, 893 REFIID riid, 894 void **ppvObject); 895 896 ULONG (STDMETHODCALLTYPE *AddRef)( 897 IContinueCallback* This); 898 899 ULONG (STDMETHODCALLTYPE *Release)( 900 IContinueCallback* This); 901 902 /*** IContinueCallback methods ***/ 903 HRESULT (STDMETHODCALLTYPE *FContinue)( 904 IContinueCallback* This); 905 906 HRESULT (STDMETHODCALLTYPE *FContinuePrinting)( 907 IContinueCallback* This, 908 LONG nCntPrinted, 909 LONG nCurPage, 910 wchar_t *pwszPrintStatus); 911 912 END_INTERFACE 913 } IContinueCallbackVtbl; 914 interface IContinueCallback { 915 CONST_VTBL IContinueCallbackVtbl* lpVtbl; 916 }; 917 918 #ifdef COBJMACROS 919 #ifndef WIDL_C_INLINE_WRAPPERS 920 /*** IUnknown methods ***/ 921 #define IContinueCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 922 #define IContinueCallback_AddRef(This) (This)->lpVtbl->AddRef(This) 923 #define IContinueCallback_Release(This) (This)->lpVtbl->Release(This) 924 /*** IContinueCallback methods ***/ 925 #define IContinueCallback_FContinue(This) (This)->lpVtbl->FContinue(This) 926 #define IContinueCallback_FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus) (This)->lpVtbl->FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus) 927 #else 928 /*** IUnknown methods ***/ 929 static FORCEINLINE HRESULT IContinueCallback_QueryInterface(IContinueCallback* This,REFIID riid,void **ppvObject) { 930 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 931 } 932 static FORCEINLINE ULONG IContinueCallback_AddRef(IContinueCallback* This) { 933 return This->lpVtbl->AddRef(This); 934 } 935 static FORCEINLINE ULONG IContinueCallback_Release(IContinueCallback* This) { 936 return This->lpVtbl->Release(This); 937 } 938 /*** IContinueCallback methods ***/ 939 static FORCEINLINE HRESULT IContinueCallback_FContinue(IContinueCallback* This) { 940 return This->lpVtbl->FContinue(This); 941 } 942 static FORCEINLINE HRESULT IContinueCallback_FContinuePrinting(IContinueCallback* This,LONG nCntPrinted,LONG nCurPage,wchar_t *pwszPrintStatus) { 943 return This->lpVtbl->FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus); 944 } 945 #endif 946 #endif 947 948 #endif 949 950 HRESULT STDMETHODCALLTYPE IContinueCallback_FContinue_Proxy( 951 IContinueCallback* This); 952 void __RPC_STUB IContinueCallback_FContinue_Stub( 953 IRpcStubBuffer* This, 954 IRpcChannelBuffer* pRpcChannelBuffer, 955 PRPC_MESSAGE pRpcMessage, 956 DWORD* pdwStubPhase); 957 HRESULT STDMETHODCALLTYPE IContinueCallback_FContinuePrinting_Proxy( 958 IContinueCallback* This, 959 LONG nCntPrinted, 960 LONG nCurPage, 961 wchar_t *pwszPrintStatus); 962 void __RPC_STUB IContinueCallback_FContinuePrinting_Stub( 963 IRpcStubBuffer* This, 964 IRpcChannelBuffer* pRpcChannelBuffer, 965 PRPC_MESSAGE pRpcMessage, 966 DWORD* pdwStubPhase); 967 968 #endif /* __IContinueCallback_INTERFACE_DEFINED__ */ 969 970 #endif 971 972 #ifndef _LPPRINT_DEFINED 973 #define _LPPRINT_DEFINED 974 /***************************************************************************** 975 * IPrint interface 976 */ 977 #ifndef __IPrint_INTERFACE_DEFINED__ 978 #define __IPrint_INTERFACE_DEFINED__ 979 980 typedef IPrint *LPPRINT; 981 982 typedef enum __WIDL_docobj_generated_name_00000014 { 983 PRINTFLAG_MAYBOTHERUSER = 1, 984 PRINTFLAG_PROMPTUSER = 2, 985 PRINTFLAG_USERMAYCHANGEPRINTER = 4, 986 PRINTFLAG_RECOMPOSETODEVICE = 8, 987 PRINTFLAG_DONTACTUALLYPRINT = 16, 988 PRINTFLAG_FORCEPROPERTIES = 32, 989 PRINTFLAG_PRINTTOFILE = 64 990 } PRINTFLAG; 991 992 typedef struct tagPAGERANGE { 993 LONG nFromPage; 994 LONG nToPage; 995 } PAGERANGE; 996 997 typedef struct tagPAGESET { 998 ULONG cbStruct; 999 WINBOOL fOddPages; 1000 WINBOOL fEvenPages; 1001 ULONG cPageRange; 1002 PAGERANGE rgPages[1]; 1003 } PAGESET; 1004 1005 #define PAGESET_TOLASTPAGE ((WORD)(-1L)) 1006 1007 DEFINE_GUID(IID_IPrint, 0xb722bcc9, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 1008 #if defined(__cplusplus) && !defined(CINTERFACE) 1009 MIDL_INTERFACE("b722bcc9-4e68-101b-a2bc-00aa00404770") 1010 IPrint : public IUnknown 1011 { 1012 virtual HRESULT STDMETHODCALLTYPE SetInitialPageNum( 1013 LONG nFirstPage) = 0; 1014 1015 virtual HRESULT STDMETHODCALLTYPE GetPageInfo( 1016 LONG *pnFirstPage, 1017 LONG *pcPages) = 0; 1018 1019 virtual HRESULT __stdcall Print( 1020 DWORD grfFlags, 1021 DVTARGETDEVICE **pptd, 1022 PAGESET **ppPageSet, 1023 STGMEDIUM *pstgmOptions, 1024 IContinueCallback *pcallback, 1025 LONG nFirstPage, 1026 LONG *pcPagesPrinted, 1027 LONG *pnLastPage) = 0; 1028 1029 }; 1030 #ifdef __CRT_UUID_DECL 1031 __CRT_UUID_DECL(IPrint, 0xb722bcc9, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 1032 #endif 1033 #else 1034 typedef struct IPrintVtbl { 1035 BEGIN_INTERFACE 1036 1037 /*** IUnknown methods ***/ 1038 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 1039 IPrint* This, 1040 REFIID riid, 1041 void **ppvObject); 1042 1043 ULONG (STDMETHODCALLTYPE *AddRef)( 1044 IPrint* This); 1045 1046 ULONG (STDMETHODCALLTYPE *Release)( 1047 IPrint* This); 1048 1049 /*** IPrint methods ***/ 1050 HRESULT (STDMETHODCALLTYPE *SetInitialPageNum)( 1051 IPrint* This, 1052 LONG nFirstPage); 1053 1054 HRESULT (STDMETHODCALLTYPE *GetPageInfo)( 1055 IPrint* This, 1056 LONG *pnFirstPage, 1057 LONG *pcPages); 1058 1059 HRESULT (__stdcall *Print)( 1060 IPrint* This, 1061 DWORD grfFlags, 1062 DVTARGETDEVICE **pptd, 1063 PAGESET **ppPageSet, 1064 STGMEDIUM *pstgmOptions, 1065 IContinueCallback *pcallback, 1066 LONG nFirstPage, 1067 LONG *pcPagesPrinted, 1068 LONG *pnLastPage); 1069 1070 END_INTERFACE 1071 } IPrintVtbl; 1072 interface IPrint { 1073 CONST_VTBL IPrintVtbl* lpVtbl; 1074 }; 1075 1076 #ifdef COBJMACROS 1077 #ifndef WIDL_C_INLINE_WRAPPERS 1078 /*** IUnknown methods ***/ 1079 #define IPrint_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 1080 #define IPrint_AddRef(This) (This)->lpVtbl->AddRef(This) 1081 #define IPrint_Release(This) (This)->lpVtbl->Release(This) 1082 /*** IPrint methods ***/ 1083 #define IPrint_SetInitialPageNum(This,nFirstPage) (This)->lpVtbl->SetInitialPageNum(This,nFirstPage) 1084 #define IPrint_GetPageInfo(This,pnFirstPage,pcPages) (This)->lpVtbl->GetPageInfo(This,pnFirstPage,pcPages) 1085 #define IPrint_Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage) (This)->lpVtbl->Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage) 1086 #else 1087 /*** IUnknown methods ***/ 1088 static FORCEINLINE HRESULT IPrint_QueryInterface(IPrint* This,REFIID riid,void **ppvObject) { 1089 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 1090 } 1091 static FORCEINLINE ULONG IPrint_AddRef(IPrint* This) { 1092 return This->lpVtbl->AddRef(This); 1093 } 1094 static FORCEINLINE ULONG IPrint_Release(IPrint* This) { 1095 return This->lpVtbl->Release(This); 1096 } 1097 /*** IPrint methods ***/ 1098 static FORCEINLINE HRESULT IPrint_SetInitialPageNum(IPrint* This,LONG nFirstPage) { 1099 return This->lpVtbl->SetInitialPageNum(This,nFirstPage); 1100 } 1101 static FORCEINLINE HRESULT IPrint_GetPageInfo(IPrint* This,LONG *pnFirstPage,LONG *pcPages) { 1102 return This->lpVtbl->GetPageInfo(This,pnFirstPage,pcPages); 1103 } 1104 static FORCEINLINE HRESULT IPrint_Print(IPrint* This,DWORD grfFlags,DVTARGETDEVICE **pptd,PAGESET **ppPageSet,STGMEDIUM *pstgmOptions,IContinueCallback *pcallback,LONG nFirstPage,LONG *pcPagesPrinted,LONG *pnLastPage) { 1105 return This->lpVtbl->Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage); 1106 } 1107 #endif 1108 #endif 1109 1110 #endif 1111 1112 HRESULT STDMETHODCALLTYPE IPrint_SetInitialPageNum_Proxy( 1113 IPrint* This, 1114 LONG nFirstPage); 1115 void __RPC_STUB IPrint_SetInitialPageNum_Stub( 1116 IRpcStubBuffer* This, 1117 IRpcChannelBuffer* pRpcChannelBuffer, 1118 PRPC_MESSAGE pRpcMessage, 1119 DWORD* pdwStubPhase); 1120 HRESULT STDMETHODCALLTYPE IPrint_GetPageInfo_Proxy( 1121 IPrint* This, 1122 LONG *pnFirstPage, 1123 LONG *pcPages); 1124 void __RPC_STUB IPrint_GetPageInfo_Stub( 1125 IRpcStubBuffer* This, 1126 IRpcChannelBuffer* pRpcChannelBuffer, 1127 PRPC_MESSAGE pRpcMessage, 1128 DWORD* pdwStubPhase); 1129 HRESULT __stdcall IPrint_RemotePrint_Proxy( 1130 IPrint* This, 1131 DWORD grfFlags, 1132 DVTARGETDEVICE **pptd, 1133 PAGESET **pppageset, 1134 RemSTGMEDIUM *pstgmOptions, 1135 IContinueCallback *pcallback, 1136 LONG nFirstPage, 1137 LONG *pcPagesPrinted, 1138 LONG *pnLastPage); 1139 void __RPC_STUB IPrint_RemotePrint_Stub( 1140 IRpcStubBuffer* This, 1141 IRpcChannelBuffer* pRpcChannelBuffer, 1142 PRPC_MESSAGE pRpcMessage, 1143 DWORD* pdwStubPhase); 1144 HRESULT CALLBACK IPrint_Print_Proxy( 1145 IPrint* This, 1146 DWORD grfFlags, 1147 DVTARGETDEVICE **pptd, 1148 PAGESET **ppPageSet, 1149 STGMEDIUM *pstgmOptions, 1150 IContinueCallback *pcallback, 1151 LONG nFirstPage, 1152 LONG *pcPagesPrinted, 1153 LONG *pnLastPage); 1154 HRESULT __RPC_STUB IPrint_Print_Stub( 1155 IPrint* This, 1156 DWORD grfFlags, 1157 DVTARGETDEVICE **pptd, 1158 PAGESET **pppageset, 1159 RemSTGMEDIUM *pstgmOptions, 1160 IContinueCallback *pcallback, 1161 LONG nFirstPage, 1162 LONG *pcPagesPrinted, 1163 LONG *pnLastPage); 1164 1165 #endif /* __IPrint_INTERFACE_DEFINED__ */ 1166 1167 #endif 1168 1169 #ifndef _LPOLECOMMANDTARGET_DEFINED 1170 #define _LPOLECOMMANDTARGET_DEFINED 1171 /***************************************************************************** 1172 * IOleCommandTarget interface 1173 */ 1174 #ifndef __IOleCommandTarget_INTERFACE_DEFINED__ 1175 #define __IOleCommandTarget_INTERFACE_DEFINED__ 1176 1177 typedef IOleCommandTarget *LPOLECOMMANDTARGET; 1178 1179 typedef enum OLECMDF { 1180 OLECMDF_SUPPORTED = 0x1, 1181 OLECMDF_ENABLED = 0x2, 1182 OLECMDF_LATCHED = 0x4, 1183 OLECMDF_NINCHED = 0x8, 1184 OLECMDF_INVISIBLE = 0x10, 1185 OLECMDF_DEFHIDEONCTXTMENU = 0x20 1186 } OLECMDF; 1187 1188 typedef struct _tagOLECMD { 1189 ULONG cmdID; 1190 DWORD cmdf; 1191 } OLECMD; 1192 1193 typedef struct _tagOLECMDTEXT { 1194 DWORD cmdtextf; 1195 ULONG cwActual; 1196 ULONG cwBuf; 1197 wchar_t rgwz[1]; 1198 } OLECMDTEXT; 1199 1200 typedef enum OLECMDTEXTF { 1201 OLECMDTEXTF_NONE = 0, 1202 OLECMDTEXTF_NAME = 1, 1203 OLECMDTEXTF_STATUS = 2 1204 } OLECMDTEXTF; 1205 1206 typedef enum OLECMDEXECOPT { 1207 OLECMDEXECOPT_DODEFAULT = 0, 1208 OLECMDEXECOPT_PROMPTUSER = 1, 1209 OLECMDEXECOPT_DONTPROMPTUSER = 2, 1210 OLECMDEXECOPT_SHOWHELP = 3 1211 } OLECMDEXECOPT; 1212 1213 typedef enum OLECMDID { 1214 OLECMDID_OPEN = 1, 1215 OLECMDID_NEW = 2, 1216 OLECMDID_SAVE = 3, 1217 OLECMDID_SAVEAS = 4, 1218 OLECMDID_SAVECOPYAS = 5, 1219 OLECMDID_PRINT = 6, 1220 OLECMDID_PRINTPREVIEW = 7, 1221 OLECMDID_PAGESETUP = 8, 1222 OLECMDID_SPELL = 9, 1223 OLECMDID_PROPERTIES = 10, 1224 OLECMDID_CUT = 11, 1225 OLECMDID_COPY = 12, 1226 OLECMDID_PASTE = 13, 1227 OLECMDID_PASTESPECIAL = 14, 1228 OLECMDID_UNDO = 15, 1229 OLECMDID_REDO = 16, 1230 OLECMDID_SELECTALL = 17, 1231 OLECMDID_CLEARSELECTION = 18, 1232 OLECMDID_ZOOM = 19, 1233 OLECMDID_GETZOOMRANGE = 20, 1234 OLECMDID_UPDATECOMMANDS = 21, 1235 OLECMDID_REFRESH = 22, 1236 OLECMDID_STOP = 23, 1237 OLECMDID_HIDETOOLBARS = 24, 1238 OLECMDID_SETPROGRESSMAX = 25, 1239 OLECMDID_SETPROGRESSPOS = 26, 1240 OLECMDID_SETPROGRESSTEXT = 27, 1241 OLECMDID_SETTITLE = 28, 1242 OLECMDID_SETDOWNLOADSTATE = 29, 1243 OLECMDID_STOPDOWNLOAD = 30, 1244 OLECMDID_ONTOOLBARACTIVATED = 31, 1245 OLECMDID_FIND = 32, 1246 OLECMDID_DELETE = 33, 1247 OLECMDID_HTTPEQUIV = 34, 1248 OLECMDID_HTTPEQUIV_DONE = 35, 1249 OLECMDID_ENABLE_INTERACTION = 36, 1250 OLECMDID_ONUNLOAD = 37, 1251 OLECMDID_PROPERTYBAG2 = 38, 1252 OLECMDID_PREREFRESH = 39, 1253 OLECMDID_SHOWSCRIPTERROR = 40, 1254 OLECMDID_SHOWMESSAGE = 41, 1255 OLECMDID_SHOWFIND = 42, 1256 OLECMDID_SHOWPAGESETUP = 43, 1257 OLECMDID_SHOWPRINT = 44, 1258 OLECMDID_CLOSE = 45, 1259 OLECMDID_ALLOWUILESSSAVEAS = 46, 1260 OLECMDID_DONTDOWNLOADCSS = 47, 1261 OLECMDID_UPDATEPAGESTATUS = 48, 1262 OLECMDID_PRINT2 = 49, 1263 OLECMDID_PRINTPREVIEW2 = 50, 1264 OLECMDID_SETPRINTTEMPLATE = 51, 1265 OLECMDID_GETPRINTTEMPLATE = 52, 1266 OLECMDID_PAGEACTIONBLOCKED = 55, 1267 OLECMDID_PAGEACTIONUIQUERY = 56, 1268 OLECMDID_FOCUSVIEWCONTROLS = 57, 1269 OLECMDID_FOCUSVIEWCONTROLSQUERY = 58, 1270 OLECMDID_SHOWPAGEACTIONMENU = 59, 1271 OLECMDID_ADDTRAVELENTRY = 60, 1272 OLECMDID_UPDATETRAVELENTRY = 61, 1273 OLECMDID_UPDATEBACKFORWARDSTATE = 62, 1274 OLECMDID_OPTICAL_ZOOM = 63, 1275 OLECMDID_OPTICAL_GETZOOMRANGE = 64, 1276 OLECMDID_WINDOWSTATECHANGED = 65, 1277 OLECMDID_ACTIVEXINSTALLSCOPE = 66, 1278 OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67, 1279 OLECMDID_SHOWTASKDLG = 68, 1280 OLECMDID_POPSTATEEVENT = 69, 1281 OLECMDID_VIEWPORT_MODE = 70, 1282 OLECMDID_LAYOUT_VIEWPORT_WIDTH = 71, 1283 OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM = 72, 1284 OLECMDID_USER_OPTICAL_ZOOM = 73, 1285 OLECMDID_PAGEAVAILABLE = 74, 1286 OLECMDID_GETUSERSCALABLE = 75, 1287 OLECMDID_UPDATE_CARET = 76, 1288 OLECMDID_ENABLE_VISIBILITY = 77, 1289 OLECMDID_MEDIA_PLAYBACK = 78 1290 } OLECMDID; 1291 1292 typedef enum MEDIAPLAYBACK_STATE { 1293 MEDIAPLAYBACK_RESUME = 0, 1294 MEDIAPLAYBACK_PAUSE = 1 1295 } MEDIAPLAYBACK_STATE; 1296 1297 #define OLECMDERR_E_FIRST (OLE_E_LAST + 1) 1298 #define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST) 1299 #define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST + 1) 1300 #define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST + 2) 1301 #define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST + 3) 1302 #define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST + 4) 1303 1304 #define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST 1305 #define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED 1306 #define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED 1307 #define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP 1308 #define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED 1309 #define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP 1310 1311 #define OLECMD_TASKDLGID_ONBEFOREUNLOAD 1 1312 1313 #if NTDDI_VERSION >= NTDDI_WINXPSP2 1314 #define OLECMDARGINDEX_SHOWPAGEACTIONMENU_HWND 0 1315 #define OLECMDARGINDEX_SHOWPAGEACTIONMENU_X 1 1316 #define OLECMDARGINDEX_SHOWPAGEACTIONMENU_Y 2 1317 #define OLECMDARGINDEX_ACTIVEXINSTALL_PUBLISHER 0 1318 #define OLECMDARGINDEX_ACTIVEXINSTALL_DISPLAYNAME 1 1319 #define OLECMDARGINDEX_ACTIVEXINSTALL_CLSID 2 1320 #define OLECMDARGINDEX_ACTIVEXINSTALL_INSTALLSCOPE 3 1321 #define OLECMDARGINDEX_ACTIVEXINSTALL_SOURCEURL 4 1322 1323 #define INSTALL_SCOPE_INVALID 0 1324 #define INSTALL_SCOPE_MACHINE 1 1325 #define INSTALL_SCOPE_USER 2 1326 1327 typedef enum IGNOREMIME { 1328 IGNOREMIME_PROMPT = 0x1, 1329 IGNOREMIME_TEXT = 0x2 1330 } IGNOREMIME; 1331 1332 typedef enum WPCSETTING { 1333 WPCSETTING_LOGGING_ENABLED = 0x1, 1334 WPCSETTING_FILEDOWNLOAD_BLOCKED = 0x2 1335 } WPCSETTING; 1336 #endif 1337 1338 DEFINE_GUID(IID_IOleCommandTarget, 0xb722bccb, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); 1339 #if defined(__cplusplus) && !defined(CINTERFACE) 1340 MIDL_INTERFACE("b722bccb-4e68-101b-a2bc-00aa00404770") 1341 IOleCommandTarget : public IUnknown 1342 { 1343 virtual HRESULT STDMETHODCALLTYPE QueryStatus( 1344 const GUID *pguidCmdGroup, 1345 ULONG cCmds, 1346 OLECMD prgCmds[], 1347 OLECMDTEXT *pCmdText) = 0; 1348 1349 virtual HRESULT STDMETHODCALLTYPE Exec( 1350 const GUID *pguidCmdGroup, 1351 DWORD nCmdID, 1352 DWORD nCmdexecopt, 1353 VARIANT *pvaIn, 1354 VARIANT *pvaOut) = 0; 1355 1356 }; 1357 #ifdef __CRT_UUID_DECL 1358 __CRT_UUID_DECL(IOleCommandTarget, 0xb722bccb, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70) 1359 #endif 1360 #else 1361 typedef struct IOleCommandTargetVtbl { 1362 BEGIN_INTERFACE 1363 1364 /*** IUnknown methods ***/ 1365 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 1366 IOleCommandTarget* This, 1367 REFIID riid, 1368 void **ppvObject); 1369 1370 ULONG (STDMETHODCALLTYPE *AddRef)( 1371 IOleCommandTarget* This); 1372 1373 ULONG (STDMETHODCALLTYPE *Release)( 1374 IOleCommandTarget* This); 1375 1376 /*** IOleCommandTarget methods ***/ 1377 HRESULT (STDMETHODCALLTYPE *QueryStatus)( 1378 IOleCommandTarget* This, 1379 const GUID *pguidCmdGroup, 1380 ULONG cCmds, 1381 OLECMD prgCmds[], 1382 OLECMDTEXT *pCmdText); 1383 1384 HRESULT (STDMETHODCALLTYPE *Exec)( 1385 IOleCommandTarget* This, 1386 const GUID *pguidCmdGroup, 1387 DWORD nCmdID, 1388 DWORD nCmdexecopt, 1389 VARIANT *pvaIn, 1390 VARIANT *pvaOut); 1391 1392 END_INTERFACE 1393 } IOleCommandTargetVtbl; 1394 interface IOleCommandTarget { 1395 CONST_VTBL IOleCommandTargetVtbl* lpVtbl; 1396 }; 1397 1398 #ifdef COBJMACROS 1399 #ifndef WIDL_C_INLINE_WRAPPERS 1400 /*** IUnknown methods ***/ 1401 #define IOleCommandTarget_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 1402 #define IOleCommandTarget_AddRef(This) (This)->lpVtbl->AddRef(This) 1403 #define IOleCommandTarget_Release(This) (This)->lpVtbl->Release(This) 1404 /*** IOleCommandTarget methods ***/ 1405 #define IOleCommandTarget_QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) (This)->lpVtbl->QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) 1406 #define IOleCommandTarget_Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) (This)->lpVtbl->Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) 1407 #else 1408 /*** IUnknown methods ***/ 1409 static FORCEINLINE HRESULT IOleCommandTarget_QueryInterface(IOleCommandTarget* This,REFIID riid,void **ppvObject) { 1410 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 1411 } 1412 static FORCEINLINE ULONG IOleCommandTarget_AddRef(IOleCommandTarget* This) { 1413 return This->lpVtbl->AddRef(This); 1414 } 1415 static FORCEINLINE ULONG IOleCommandTarget_Release(IOleCommandTarget* This) { 1416 return This->lpVtbl->Release(This); 1417 } 1418 /*** IOleCommandTarget methods ***/ 1419 static FORCEINLINE HRESULT IOleCommandTarget_QueryStatus(IOleCommandTarget* This,const GUID *pguidCmdGroup,ULONG cCmds,OLECMD prgCmds[],OLECMDTEXT *pCmdText) { 1420 return This->lpVtbl->QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText); 1421 } 1422 static FORCEINLINE HRESULT IOleCommandTarget_Exec(IOleCommandTarget* This,const GUID *pguidCmdGroup,DWORD nCmdID,DWORD nCmdexecopt,VARIANT *pvaIn,VARIANT *pvaOut) { 1423 return This->lpVtbl->Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut); 1424 } 1425 #endif 1426 #endif 1427 1428 #endif 1429 1430 HRESULT STDMETHODCALLTYPE IOleCommandTarget_QueryStatus_Proxy( 1431 IOleCommandTarget* This, 1432 const GUID *pguidCmdGroup, 1433 ULONG cCmds, 1434 OLECMD prgCmds[], 1435 OLECMDTEXT *pCmdText); 1436 void __RPC_STUB IOleCommandTarget_QueryStatus_Stub( 1437 IRpcStubBuffer* This, 1438 IRpcChannelBuffer* pRpcChannelBuffer, 1439 PRPC_MESSAGE pRpcMessage, 1440 DWORD* pdwStubPhase); 1441 HRESULT STDMETHODCALLTYPE IOleCommandTarget_Exec_Proxy( 1442 IOleCommandTarget* This, 1443 const GUID *pguidCmdGroup, 1444 DWORD nCmdID, 1445 DWORD nCmdexecopt, 1446 VARIANT *pvaIn, 1447 VARIANT *pvaOut); 1448 void __RPC_STUB IOleCommandTarget_Exec_Stub( 1449 IRpcStubBuffer* This, 1450 IRpcChannelBuffer* pRpcChannelBuffer, 1451 PRPC_MESSAGE pRpcMessage, 1452 DWORD* pdwStubPhase); 1453 1454 #endif /* __IOleCommandTarget_INTERFACE_DEFINED__ */ 1455 1456 #endif 1457 typedef enum { 1458 OLECMDIDF_REFRESH_NORMAL = 0, 1459 OLECMDIDF_REFRESH_IFEXPIRED = 1, 1460 OLECMDIDF_REFRESH_CONTINUE = 2, 1461 OLECMDIDF_REFRESH_COMPLETELY = 3, 1462 OLECMDIDF_REFRESH_NO_CACHE = 4, 1463 OLECMDIDF_REFRESH_RELOAD = 5, 1464 OLECMDIDF_REFRESH_LEVELMASK = 0x00FF, 1465 OLECMDIDF_REFRESH_CLEARUSERINPUT = 0x1000, 1466 #if NTDDI_VERSION >= NTDDI_WINXPSP2 1467 OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000, 1468 OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000, 1469 OLECMDIDF_REFRESH_SKIPBEFOREUNLOADEVENT = 0x8000, 1470 OLECMDIDF_REFRESH_PAGEACTION_ACTIVEXINSTALL = 0x00010000, 1471 OLECMDIDF_REFRESH_PAGEACTION_FILEDOWNLOAD = 0x00020000, 1472 OLECMDIDF_REFRESH_PAGEACTION_LOCALMACHINE = 0x00040000, 1473 OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW = 0x00080000, 1474 OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00100000, 1475 OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00200000, 1476 OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00400000, 1477 OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00800000, 1478 OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x01000000, 1479 #else 1480 OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000, 1481 OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000, 1482 #endif 1483 OLECMDIDF_REFRESH_PAGEACTION_MIXEDCONTENT = 0x02000000, 1484 OLECMDIDF_REFRESH_PAGEACTION_INVALID_CERT = 0x04000000 1485 } OLECMDID_REFRESHFLAG; 1486 1487 typedef enum { 1488 OLECMDIDF_PAGEACTION_FILEDOWNLOAD = 0x00000001, 1489 OLECMDIDF_PAGEACTION_ACTIVEXINSTALL = 0x00000002, 1490 OLECMDIDF_PAGEACTION_ACTIVEXTRUSTFAIL = 0x00000004, 1491 OLECMDIDF_PAGEACTION_ACTIVEXUSERDISABLE = 0x00000008, 1492 OLECMDIDF_PAGEACTION_ACTIVEXDISALLOW = 0x00000010, 1493 OLECMDIDF_PAGEACTION_ACTIVEXUNSAFE = 0x00000020, 1494 OLECMDIDF_PAGEACTION_POPUPWINDOW = 0x00000040, 1495 OLECMDIDF_PAGEACTION_LOCALMACHINE = 0x00000080, 1496 OLECMDIDF_PAGEACTION_MIMETEXTPLAIN = 0x00000100, 1497 OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE = 0x00000200, 1498 OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXINSTALL = 0x00000200, 1499 OLECMDIDF_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00000400, 1500 OLECMDIDF_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00000800, 1501 OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00001000, 1502 OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00002000, 1503 OLECMDIDF_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x00004000, 1504 OLECMDIDF_PAGEACTION_PROTLOCKDOWNDENY = 0x00008000, 1505 OLECMDIDF_PAGEACTION_POPUPALLOWED = 0x00010000, 1506 OLECMDIDF_PAGEACTION_SCRIPTPROMPT = 0x00020000, 1507 OLECMDIDF_PAGEACTION_ACTIVEXUSERAPPROVAL = 0x00040000, 1508 OLECMDIDF_PAGEACTION_MIXEDCONTENT = 0x00080000, 1509 OLECMDIDF_PAGEACTION_INVALID_CERT = 0x00100000, 1510 OLECMDIDF_PAGEACTION_INTRANETZONEREQUEST = 0x00200000, 1511 OLECMDIDF_PAGEACTION_XSSFILTERED = 0x00400000, 1512 OLECMDIDF_PAGEACTION_SPOOFABLEIDNHOST = 0x00800000, 1513 OLECMDIDF_PAGEACTION_ACTIVEX_EPM_INCOMPATIBLE = 0x01000000, 1514 OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXUSERAPPROVAL = 0x02000000, 1515 OLECMDIDF_PAGEACTION_WPCBLOCKED = 0x04000000, 1516 OLECMDIDF_PAGEACTION_WPCBLOCKED_ACTIVEX = 0x08000000, 1517 OLECMDIDF_PAGEACTION_EXTENSION_COMPAT_BLOCKED = 0x10000000, 1518 OLECMDIDF_PAGEACTION_NORESETACTIVEX = 0x20000000, 1519 OLECMDIDF_PAGEACTION_GENERIC_STATE = 0x40000000, 1520 OLECMDIDF_PAGEACTION_RESET = (int) 0x80000000 1521 } OLECMDID_PAGEACTIONFLAG; 1522 1523 typedef enum { 1524 OLECMDIDF_BROWSERSTATE_EXTENSIONSOFF = 0x00000001, 1525 OLECMDIDF_BROWSERSTATE_IESECURITY = 0x00000002, 1526 OLECMDIDF_BROWSERSTATE_PROTECTEDMODE_OFF = 0x00000004, 1527 OLECMDIDF_BROWSERSTATE_RESET = 0x00000008, 1528 OLECMDIDF_BROWSERSTATE_REQUIRESACTIVEX = 0x00000010, 1529 } OLECMDID_BROWSERSTATEFLAG; 1530 1531 typedef enum { 1532 OLECMDIDF_OPTICAL_ZOOM_NOPERSIST = 0x00000001, 1533 OLECMDIDF_OPTICAL_ZOOM_NOLAYOUT = 0x00000010 1534 } OLECMDID_OPTICAL_ZOOMFLAG; 1535 1536 typedef enum { 1537 PAGEACTION_UI_DEFAULT = 0, 1538 PAGEACTION_UI_MODAL = 1, 1539 PAGEACTION_UI_MODELESS = 2, 1540 PAGEACTION_UI_SILENT = 3 1541 } PAGEACTION_UI; 1542 1543 typedef enum { 1544 OLECMDIDF_WINDOWSTATE_USERVISIBLE = 0x00000001, 1545 OLECMDIDF_WINDOWSTATE_ENABLED = 0x00000002, 1546 OLECMDIDF_WINDOWSTATE_USERVISIBLE_VALID = 0x00010000, 1547 OLECMDIDF_WINDOWSTATE_ENABLED_VALID = 0x00020000 1548 } OLECMDID_WINDOWSTATE_FLAG; 1549 1550 typedef enum { 1551 OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH = 0x00000001, 1552 OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM = 0x00000002, 1553 OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH_VALID = 0x00010000, 1554 OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM_VALID = 0x00020000 1555 } OLECMDID_VIEWPORT_MODE_FLAG; 1556 1557 #define IMsoDocument IOleDocument 1558 #define IMsoDocumentSite IOleDocumentSite 1559 #define IMsoView IOleDocumentView 1560 #define IEnumMsoView IEnumOleDocumentViews 1561 #define IMsoCommandTarget IOleCommandTarget 1562 #define LPMSODOCUMENT LPOLEDOCUMENT 1563 #define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE 1564 #define LPMSOVIEW LPOLEDOCUMENTVIEW 1565 #define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS 1566 #define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET 1567 #define MSOCMD OLECMD 1568 #define MSOCMDTEXT OLECMDTEXT 1569 #define IID_IMsoDocument IID_IOleDocument 1570 #define IID_IMsoDocumentSite IID_IOleDocumentSite 1571 #define IID_IMsoView IID_IOleDocumentView 1572 #define IID_IEnumMsoView IID_IEnumOleDocumentViews 1573 #define IID_IMsoCommandTarget IID_IOleCommandTarget 1574 #define MSOCMDF_SUPPORTED OLECMDF_SUPPORTED 1575 #define MSOCMDF_ENABLED OLECMDF_ENABLED 1576 #define MSOCMDF_LATCHED OLECMDF_LATCHED 1577 #define MSOCMDF_NINCHED OLECMDF_NINCHED 1578 #define MSOCMDTEXTF_NONE OLECMDTEXTF_NONE 1579 #define MSOCMDTEXTF_NAME OLECMDTEXTF_NAME 1580 #define MSOCMDTEXTF_STATUS OLECMDTEXTF_STATUS 1581 #define MSOCMDEXECOPT_DODEFAULT OLECMDEXECOPT_DODEFAULT 1582 #define MSOCMDEXECOPT_PROMPTUSER OLECMDEXECOPT_PROMPTUSER 1583 #define MSOCMDEXECOPT_DONTPROMPTUSER OLECMDEXECOPT_DONTPROMPTUSER 1584 #define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP 1585 #define MSOCMDID_OPEN OLECMDID_OPEN 1586 #define MSOCMDID_NEW OLECMDID_NEW 1587 #define MSOCMDID_SAVE OLECMDID_SAVE 1588 #define MSOCMDID_SAVEAS OLECMDID_SAVEAS 1589 #define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS 1590 #define MSOCMDID_PRINT OLECMDID_PRINT 1591 #define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW 1592 #define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP 1593 #define MSOCMDID_SPELL OLECMDID_SPELL 1594 #define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES 1595 #define MSOCMDID_CUT OLECMDID_CUT 1596 #define MSOCMDID_COPY OLECMDID_COPY 1597 #define MSOCMDID_PASTE OLECMDID_PASTE 1598 #define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL 1599 #define MSOCMDID_UNDO OLECMDID_UNDO 1600 #define MSOCMDID_REDO OLECMDID_REDO 1601 #define MSOCMDID_SELECTALL OLECMDID_SELECTALL 1602 #define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION 1603 #define MSOCMDID_ZOOM OLECMDID_ZOOM 1604 #define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE 1605 1606 EXTERN_C const GUID SID_SContainerDispatch; 1607 1608 /***************************************************************************** 1609 * IZoomEvents interface 1610 */ 1611 #ifndef __IZoomEvents_INTERFACE_DEFINED__ 1612 #define __IZoomEvents_INTERFACE_DEFINED__ 1613 1614 DEFINE_GUID(IID_IZoomEvents, 0x41b68150, 0x904c, 0x4e17, 0xa0,0xba, 0xa4,0x38,0x18,0x2e,0x35,0x9d); 1615 #if defined(__cplusplus) && !defined(CINTERFACE) 1616 MIDL_INTERFACE("41b68150-904c-4e17-a0ba-a438182e359d") 1617 IZoomEvents : public IUnknown 1618 { 1619 virtual HRESULT STDMETHODCALLTYPE OnZoomPercentChanged( 1620 ULONG ulZoomPercent) = 0; 1621 1622 }; 1623 #ifdef __CRT_UUID_DECL 1624 __CRT_UUID_DECL(IZoomEvents, 0x41b68150, 0x904c, 0x4e17, 0xa0,0xba, 0xa4,0x38,0x18,0x2e,0x35,0x9d) 1625 #endif 1626 #else 1627 typedef struct IZoomEventsVtbl { 1628 BEGIN_INTERFACE 1629 1630 /*** IUnknown methods ***/ 1631 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 1632 IZoomEvents* This, 1633 REFIID riid, 1634 void **ppvObject); 1635 1636 ULONG (STDMETHODCALLTYPE *AddRef)( 1637 IZoomEvents* This); 1638 1639 ULONG (STDMETHODCALLTYPE *Release)( 1640 IZoomEvents* This); 1641 1642 /*** IZoomEvents methods ***/ 1643 HRESULT (STDMETHODCALLTYPE *OnZoomPercentChanged)( 1644 IZoomEvents* This, 1645 ULONG ulZoomPercent); 1646 1647 END_INTERFACE 1648 } IZoomEventsVtbl; 1649 interface IZoomEvents { 1650 CONST_VTBL IZoomEventsVtbl* lpVtbl; 1651 }; 1652 1653 #ifdef COBJMACROS 1654 #ifndef WIDL_C_INLINE_WRAPPERS 1655 /*** IUnknown methods ***/ 1656 #define IZoomEvents_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 1657 #define IZoomEvents_AddRef(This) (This)->lpVtbl->AddRef(This) 1658 #define IZoomEvents_Release(This) (This)->lpVtbl->Release(This) 1659 /*** IZoomEvents methods ***/ 1660 #define IZoomEvents_OnZoomPercentChanged(This,ulZoomPercent) (This)->lpVtbl->OnZoomPercentChanged(This,ulZoomPercent) 1661 #else 1662 /*** IUnknown methods ***/ 1663 static FORCEINLINE HRESULT IZoomEvents_QueryInterface(IZoomEvents* This,REFIID riid,void **ppvObject) { 1664 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 1665 } 1666 static FORCEINLINE ULONG IZoomEvents_AddRef(IZoomEvents* This) { 1667 return This->lpVtbl->AddRef(This); 1668 } 1669 static FORCEINLINE ULONG IZoomEvents_Release(IZoomEvents* This) { 1670 return This->lpVtbl->Release(This); 1671 } 1672 /*** IZoomEvents methods ***/ 1673 static FORCEINLINE HRESULT IZoomEvents_OnZoomPercentChanged(IZoomEvents* This,ULONG ulZoomPercent) { 1674 return This->lpVtbl->OnZoomPercentChanged(This,ulZoomPercent); 1675 } 1676 #endif 1677 #endif 1678 1679 #endif 1680 1681 HRESULT STDMETHODCALLTYPE IZoomEvents_OnZoomPercentChanged_Proxy( 1682 IZoomEvents* This, 1683 ULONG ulZoomPercent); 1684 void __RPC_STUB IZoomEvents_OnZoomPercentChanged_Stub( 1685 IRpcStubBuffer* This, 1686 IRpcChannelBuffer* pRpcChannelBuffer, 1687 PRPC_MESSAGE pRpcMessage, 1688 DWORD* pdwStubPhase); 1689 1690 #endif /* __IZoomEvents_INTERFACE_DEFINED__ */ 1691 1692 1693 /***************************************************************************** 1694 * IProtectFocus interface 1695 */ 1696 #ifndef __IProtectFocus_INTERFACE_DEFINED__ 1697 #define __IProtectFocus_INTERFACE_DEFINED__ 1698 1699 DEFINE_GUID(IID_IProtectFocus, 0xd81f90a3, 0x8156, 0x44f7, 0xad,0x28, 0x5a,0xbb,0x87,0x00,0x32,0x74); 1700 #if defined(__cplusplus) && !defined(CINTERFACE) 1701 MIDL_INTERFACE("d81f90a3-8156-44f7-ad28-5abb87003274") 1702 IProtectFocus : public IUnknown 1703 { 1704 virtual HRESULT STDMETHODCALLTYPE AllowFocusChange( 1705 WINBOOL *pfAllow) = 0; 1706 1707 }; 1708 #ifdef __CRT_UUID_DECL 1709 __CRT_UUID_DECL(IProtectFocus, 0xd81f90a3, 0x8156, 0x44f7, 0xad,0x28, 0x5a,0xbb,0x87,0x00,0x32,0x74) 1710 #endif 1711 #else 1712 typedef struct IProtectFocusVtbl { 1713 BEGIN_INTERFACE 1714 1715 /*** IUnknown methods ***/ 1716 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 1717 IProtectFocus* This, 1718 REFIID riid, 1719 void **ppvObject); 1720 1721 ULONG (STDMETHODCALLTYPE *AddRef)( 1722 IProtectFocus* This); 1723 1724 ULONG (STDMETHODCALLTYPE *Release)( 1725 IProtectFocus* This); 1726 1727 /*** IProtectFocus methods ***/ 1728 HRESULT (STDMETHODCALLTYPE *AllowFocusChange)( 1729 IProtectFocus* This, 1730 WINBOOL *pfAllow); 1731 1732 END_INTERFACE 1733 } IProtectFocusVtbl; 1734 interface IProtectFocus { 1735 CONST_VTBL IProtectFocusVtbl* lpVtbl; 1736 }; 1737 1738 #ifdef COBJMACROS 1739 #ifndef WIDL_C_INLINE_WRAPPERS 1740 /*** IUnknown methods ***/ 1741 #define IProtectFocus_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 1742 #define IProtectFocus_AddRef(This) (This)->lpVtbl->AddRef(This) 1743 #define IProtectFocus_Release(This) (This)->lpVtbl->Release(This) 1744 /*** IProtectFocus methods ***/ 1745 #define IProtectFocus_AllowFocusChange(This,pfAllow) (This)->lpVtbl->AllowFocusChange(This,pfAllow) 1746 #else 1747 /*** IUnknown methods ***/ 1748 static FORCEINLINE HRESULT IProtectFocus_QueryInterface(IProtectFocus* This,REFIID riid,void **ppvObject) { 1749 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 1750 } 1751 static FORCEINLINE ULONG IProtectFocus_AddRef(IProtectFocus* This) { 1752 return This->lpVtbl->AddRef(This); 1753 } 1754 static FORCEINLINE ULONG IProtectFocus_Release(IProtectFocus* This) { 1755 return This->lpVtbl->Release(This); 1756 } 1757 /*** IProtectFocus methods ***/ 1758 static FORCEINLINE HRESULT IProtectFocus_AllowFocusChange(IProtectFocus* This,WINBOOL *pfAllow) { 1759 return This->lpVtbl->AllowFocusChange(This,pfAllow); 1760 } 1761 #endif 1762 #endif 1763 1764 #endif 1765 1766 HRESULT STDMETHODCALLTYPE IProtectFocus_AllowFocusChange_Proxy( 1767 IProtectFocus* This, 1768 WINBOOL *pfAllow); 1769 void __RPC_STUB IProtectFocus_AllowFocusChange_Stub( 1770 IRpcStubBuffer* This, 1771 IRpcChannelBuffer* pRpcChannelBuffer, 1772 PRPC_MESSAGE pRpcMessage, 1773 DWORD* pdwStubPhase); 1774 1775 #endif /* __IProtectFocus_INTERFACE_DEFINED__ */ 1776 1777 1778 #define SID_SProtectFocus IID_IProtectFocus 1779 1780 #ifndef _LPPROTECTEDMODEMENUSERVICES_DEFINED 1781 #define _LPPROTECTEDMODEMENUSERVICES_DEFINED 1782 /***************************************************************************** 1783 * IProtectedModeMenuServices interface 1784 */ 1785 #ifndef __IProtectedModeMenuServices_INTERFACE_DEFINED__ 1786 #define __IProtectedModeMenuServices_INTERFACE_DEFINED__ 1787 1788 DEFINE_GUID(IID_IProtectedModeMenuServices, 0x73c105ee, 0x9dff, 0x4a07, 0xb8,0x3c, 0x7e,0xff,0x29,0x0c,0x26,0x6e); 1789 #if defined(__cplusplus) && !defined(CINTERFACE) 1790 MIDL_INTERFACE("73c105ee-9dff-4a07-b83c-7eff290c266e") 1791 IProtectedModeMenuServices : public IUnknown 1792 { 1793 virtual HRESULT STDMETHODCALLTYPE CreateMenu( 1794 HMENU *phMenu) = 0; 1795 1796 virtual HRESULT STDMETHODCALLTYPE LoadMenu( 1797 LPCWSTR pszModuleName, 1798 LPCWSTR pszMenuName, 1799 HMENU *phMenu) = 0; 1800 1801 virtual HRESULT STDMETHODCALLTYPE LoadMenuID( 1802 LPCWSTR pszModuleName, 1803 WORD wResourceID, 1804 HMENU *phMenu) = 0; 1805 1806 }; 1807 #ifdef __CRT_UUID_DECL 1808 __CRT_UUID_DECL(IProtectedModeMenuServices, 0x73c105ee, 0x9dff, 0x4a07, 0xb8,0x3c, 0x7e,0xff,0x29,0x0c,0x26,0x6e) 1809 #endif 1810 #else 1811 typedef struct IProtectedModeMenuServicesVtbl { 1812 BEGIN_INTERFACE 1813 1814 /*** IUnknown methods ***/ 1815 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 1816 IProtectedModeMenuServices* This, 1817 REFIID riid, 1818 void **ppvObject); 1819 1820 ULONG (STDMETHODCALLTYPE *AddRef)( 1821 IProtectedModeMenuServices* This); 1822 1823 ULONG (STDMETHODCALLTYPE *Release)( 1824 IProtectedModeMenuServices* This); 1825 1826 /*** IProtectedModeMenuServices methods ***/ 1827 HRESULT (STDMETHODCALLTYPE *CreateMenu)( 1828 IProtectedModeMenuServices* This, 1829 HMENU *phMenu); 1830 1831 HRESULT (STDMETHODCALLTYPE *LoadMenu)( 1832 IProtectedModeMenuServices* This, 1833 LPCWSTR pszModuleName, 1834 LPCWSTR pszMenuName, 1835 HMENU *phMenu); 1836 1837 HRESULT (STDMETHODCALLTYPE *LoadMenuID)( 1838 IProtectedModeMenuServices* This, 1839 LPCWSTR pszModuleName, 1840 WORD wResourceID, 1841 HMENU *phMenu); 1842 1843 END_INTERFACE 1844 } IProtectedModeMenuServicesVtbl; 1845 interface IProtectedModeMenuServices { 1846 CONST_VTBL IProtectedModeMenuServicesVtbl* lpVtbl; 1847 }; 1848 1849 #ifdef COBJMACROS 1850 #ifndef WIDL_C_INLINE_WRAPPERS 1851 /*** IUnknown methods ***/ 1852 #define IProtectedModeMenuServices_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 1853 #define IProtectedModeMenuServices_AddRef(This) (This)->lpVtbl->AddRef(This) 1854 #define IProtectedModeMenuServices_Release(This) (This)->lpVtbl->Release(This) 1855 /*** IProtectedModeMenuServices methods ***/ 1856 #define IProtectedModeMenuServices_CreateMenu(This,phMenu) (This)->lpVtbl->CreateMenu(This,phMenu) 1857 #define IProtectedModeMenuServices_LoadMenu(This,pszModuleName,pszMenuName,phMenu) (This)->lpVtbl->LoadMenu(This,pszModuleName,pszMenuName,phMenu) 1858 #define IProtectedModeMenuServices_LoadMenuID(This,pszModuleName,wResourceID,phMenu) (This)->lpVtbl->LoadMenuID(This,pszModuleName,wResourceID,phMenu) 1859 #else 1860 /*** IUnknown methods ***/ 1861 static FORCEINLINE HRESULT IProtectedModeMenuServices_QueryInterface(IProtectedModeMenuServices* This,REFIID riid,void **ppvObject) { 1862 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 1863 } 1864 static FORCEINLINE ULONG IProtectedModeMenuServices_AddRef(IProtectedModeMenuServices* This) { 1865 return This->lpVtbl->AddRef(This); 1866 } 1867 static FORCEINLINE ULONG IProtectedModeMenuServices_Release(IProtectedModeMenuServices* This) { 1868 return This->lpVtbl->Release(This); 1869 } 1870 /*** IProtectedModeMenuServices methods ***/ 1871 static FORCEINLINE HRESULT IProtectedModeMenuServices_CreateMenu(IProtectedModeMenuServices* This,HMENU *phMenu) { 1872 return This->lpVtbl->CreateMenu(This,phMenu); 1873 } 1874 static FORCEINLINE HRESULT IProtectedModeMenuServices_LoadMenu(IProtectedModeMenuServices* This,LPCWSTR pszModuleName,LPCWSTR pszMenuName,HMENU *phMenu) { 1875 return This->lpVtbl->LoadMenu(This,pszModuleName,pszMenuName,phMenu); 1876 } 1877 static FORCEINLINE HRESULT IProtectedModeMenuServices_LoadMenuID(IProtectedModeMenuServices* This,LPCWSTR pszModuleName,WORD wResourceID,HMENU *phMenu) { 1878 return This->lpVtbl->LoadMenuID(This,pszModuleName,wResourceID,phMenu); 1879 } 1880 #endif 1881 #endif 1882 1883 #endif 1884 1885 HRESULT STDMETHODCALLTYPE IProtectedModeMenuServices_CreateMenu_Proxy( 1886 IProtectedModeMenuServices* This, 1887 HMENU *phMenu); 1888 void __RPC_STUB IProtectedModeMenuServices_CreateMenu_Stub( 1889 IRpcStubBuffer* This, 1890 IRpcChannelBuffer* pRpcChannelBuffer, 1891 PRPC_MESSAGE pRpcMessage, 1892 DWORD* pdwStubPhase); 1893 HRESULT STDMETHODCALLTYPE IProtectedModeMenuServices_LoadMenu_Proxy( 1894 IProtectedModeMenuServices* This, 1895 LPCWSTR pszModuleName, 1896 LPCWSTR pszMenuName, 1897 HMENU *phMenu); 1898 void __RPC_STUB IProtectedModeMenuServices_LoadMenu_Stub( 1899 IRpcStubBuffer* This, 1900 IRpcChannelBuffer* pRpcChannelBuffer, 1901 PRPC_MESSAGE pRpcMessage, 1902 DWORD* pdwStubPhase); 1903 HRESULT STDMETHODCALLTYPE IProtectedModeMenuServices_LoadMenuID_Proxy( 1904 IProtectedModeMenuServices* This, 1905 LPCWSTR pszModuleName, 1906 WORD wResourceID, 1907 HMENU *phMenu); 1908 void __RPC_STUB IProtectedModeMenuServices_LoadMenuID_Stub( 1909 IRpcStubBuffer* This, 1910 IRpcChannelBuffer* pRpcChannelBuffer, 1911 PRPC_MESSAGE pRpcMessage, 1912 DWORD* pdwStubPhase); 1913 1914 #endif /* __IProtectedModeMenuServices_INTERFACE_DEFINED__ */ 1915 1916 #endif 1917 #endif 1918 #if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY_DESKTOP_APP, WINAPI_PARTITION_APP) 1919 typedef struct tagPAGESET { } PAGESET; 1920 #endif 1921 /* Begin additional prototypes for all interfaces */ 1922 1923 ULONG __RPC_USER STGMEDIUM_UserSize (ULONG *, ULONG, STGMEDIUM *); 1924 unsigned char * __RPC_USER STGMEDIUM_UserMarshal (ULONG *, unsigned char *, STGMEDIUM *); 1925 unsigned char * __RPC_USER STGMEDIUM_UserUnmarshal(ULONG *, unsigned char *, STGMEDIUM *); 1926 void __RPC_USER STGMEDIUM_UserFree (ULONG *, STGMEDIUM *); 1927 ULONG __RPC_USER VARIANT_UserSize (ULONG *, ULONG, VARIANT *); 1928 unsigned char * __RPC_USER VARIANT_UserMarshal (ULONG *, unsigned char *, VARIANT *); 1929 unsigned char * __RPC_USER VARIANT_UserUnmarshal(ULONG *, unsigned char *, VARIANT *); 1930 void __RPC_USER VARIANT_UserFree (ULONG *, VARIANT *); 1931 ULONG __RPC_USER HMENU_UserSize (ULONG *, ULONG, HMENU *); 1932 unsigned char * __RPC_USER HMENU_UserMarshal (ULONG *, unsigned char *, HMENU *); 1933 unsigned char * __RPC_USER HMENU_UserUnmarshal(ULONG *, unsigned char *, HMENU *); 1934 void __RPC_USER HMENU_UserFree (ULONG *, HMENU *); 1935 1936 /* End additional prototypes */ 1937 1938 #ifdef __cplusplus 1939 } 1940 #endif 1941 1942 #endif /* __docobj_h__ */ 1943