MsHtmHst.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:43k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3.  /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for mshtmhst.idl:
  5.     Oicf, W1, Zp8, env=Win32 (32b run)
  6.     protocol : dce , ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8.     VC __declspec() decoration level: 
  9.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10.          DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING(  )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __mshtmhst_h__
  27. #define __mshtmhst_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */ 
  32. #ifndef __IHostDialogHelper_FWD_DEFINED__
  33. #define __IHostDialogHelper_FWD_DEFINED__
  34. typedef interface IHostDialogHelper IHostDialogHelper;
  35. #endif  /* __IHostDialogHelper_FWD_DEFINED__ */
  36. #ifndef __HostDialogHelper_FWD_DEFINED__
  37. #define __HostDialogHelper_FWD_DEFINED__
  38. #ifdef __cplusplus
  39. typedef class HostDialogHelper HostDialogHelper;
  40. #else
  41. typedef struct HostDialogHelper HostDialogHelper;
  42. #endif /* __cplusplus */
  43. #endif  /* __HostDialogHelper_FWD_DEFINED__ */
  44. #ifndef __IDocHostUIHandler_FWD_DEFINED__
  45. #define __IDocHostUIHandler_FWD_DEFINED__
  46. typedef interface IDocHostUIHandler IDocHostUIHandler;
  47. #endif  /* __IDocHostUIHandler_FWD_DEFINED__ */
  48. #ifndef __IDocHostUIHandler2_FWD_DEFINED__
  49. #define __IDocHostUIHandler2_FWD_DEFINED__
  50. typedef interface IDocHostUIHandler2 IDocHostUIHandler2;
  51. #endif  /* __IDocHostUIHandler2_FWD_DEFINED__ */
  52. #ifndef __ICustomDoc_FWD_DEFINED__
  53. #define __ICustomDoc_FWD_DEFINED__
  54. typedef interface ICustomDoc ICustomDoc;
  55. #endif  /* __ICustomDoc_FWD_DEFINED__ */
  56. #ifndef __IDocHostShowUI_FWD_DEFINED__
  57. #define __IDocHostShowUI_FWD_DEFINED__
  58. typedef interface IDocHostShowUI IDocHostShowUI;
  59. #endif  /* __IDocHostShowUI_FWD_DEFINED__ */
  60. #ifndef __IClassFactoryEx_FWD_DEFINED__
  61. #define __IClassFactoryEx_FWD_DEFINED__
  62. typedef interface IClassFactoryEx IClassFactoryEx;
  63. #endif  /* __IClassFactoryEx_FWD_DEFINED__ */
  64. /* header files for imported files */
  65. #include "ocidl.h"
  66. #include "docobj.h"
  67. #ifdef __cplusplus
  68. extern "C"{
  69. #endif 
  70. void * __RPC_USER MIDL_user_allocate(size_t);
  71. void __RPC_USER MIDL_user_free( void * ); 
  72. /* interface __MIDL_itf_mshtmhst_0000 */
  73. /* [local] */ 
  74. //=--------------------------------------------------------------------------=
  75. // mshtmhst.h
  76. //=--------------------------------------------------------------------------=
  77. // (C) Copyright 1995-1998 Microsoft Corporation.  All Rights Reserved.
  78. //
  79. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  80. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  81. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  82. // PARTICULAR PURPOSE.
  83. //=--------------------------------------------------------------------------=
  84. #pragma comment(lib,"uuid.lib")
  85. //--------------------------------------------------------------------------
  86. // MSTHML Advanced Host Interfaces.
  87. #ifndef MSHTMHST_H
  88. #define MSHTMHST_H
  89. #define CONTEXT_MENU_DEFAULT        0
  90. #define CONTEXT_MENU_IMAGE          1
  91. #define CONTEXT_MENU_CONTROL        2
  92. #define CONTEXT_MENU_TABLE          3
  93. // in browse mode
  94. #define CONTEXT_MENU_TEXTSELECT     4
  95. #define CONTEXT_MENU_ANCHOR         5
  96. #define CONTEXT_MENU_UNKNOWN        6
  97. //;begin_internal
  98. // These 2 are mapped to IMAGE for the public
  99. #define CONTEXT_MENU_IMGDYNSRC      7
  100. #define CONTEXT_MENU_IMGART         8
  101. #define CONTEXT_MENU_DEBUG          9
  102. //;end_internal
  103. #define CONTEXT_MENU_VSCROLL        10
  104. #define CONTEXT_MENU_HSCROLL        11
  105. #define MENUEXT_SHOWDIALOG           0x1
  106. #define DOCHOSTUIFLAG_BROWSER       DOCHOSTUIFLAG_DISABLE_HELP_MENU | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE 
  107. #define HTMLDLG_NOUI                     0x10
  108. #define HTMLDLG_MODAL                    0x20
  109. #define HTMLDLG_MODELESS                 0x40
  110. #define HTMLDLG_PRINT_TEMPLATE           0x80
  111. #define HTMLDLG_VERIFY                   0x100
  112. #define PRINT_DONTBOTHERUSER             0x01
  113. #define PRINT_WAITFORCOMPLETION          0x02
  114. EXTERN_C const GUID CGID_MSHTML;
  115. #define CMDSETID_Forms3 CGID_MSHTML
  116. #define SZ_HTML_CLIENTSITE_OBJECTPARAM L"{d4db6850-5385-11d0-89e9-00a0c90a90ac}"
  117. #ifndef __IHTMLWindow2_FWD_DEFINED__
  118. #define __IHTMLWindow2_FWD_DEFINED__
  119. typedef interface IHTMLWindow2 IHTMLWindow2;
  120. #endif
  121. typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, WCHAR* pchOptions, VARIANT *pvArgOut);
  122. typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGEXFN (HWND hwndParent, IMoniker *pmk, DWORD dwDialogFlags, VARIANT *pvarArgIn, WCHAR* pchOptions, VARIANT *pvArgOut);
  123. typedef HRESULT STDAPICALLTYPE SHOWMODELESSHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, VARIANT* pvarOptions, IHTMLWindow2 ** ppWindow);
  124. //;begin_internal
  125. STDAPI ShowHTMLDialog(                   
  126.     HWND        hwndParent,              
  127.     IMoniker *  pMk,                     
  128.     VARIANT *   pvarArgIn,               
  129.     WCHAR *     pchOptions,              
  130.     VARIANT *   pvarArgOut               
  131.     );                                   
  132. STDAPI ShowHTMLDialogEx(                 
  133.     HWND        hwndParent,              
  134.     IMoniker *  pMk,                     
  135.     DWORD       dwDialogFlags,           
  136.     VARIANT *   pvarArgIn,               
  137.     WCHAR *     pchOptions,              
  138.     VARIANT *   pvarArgOut               
  139.     );                                   
  140. STDAPI ShowModelessHTMLDialog(           
  141.     HWND        hwndParent,              
  142.     IMoniker *  pMk,                     
  143.     VARIANT *   pvarArgIn,               
  144.     VARIANT *   pvarOptions,             
  145.     IHTMLWindow2 ** ppWindow);           
  146. //;end_internal
  147. //;begin_internal
  148. STDAPI RunHTMLApplication(               
  149.     HINSTANCE hinst,                     
  150.     HINSTANCE hPrevInst,                 
  151.     LPSTR szCmdLine,                     
  152.     int nCmdShow                         
  153.     );                                   
  154. //;end_internal
  155. //;begin_internal
  156. STDAPI CreateHTMLPropertyPage(           
  157.     IMoniker *          pmk,             
  158.     IPropertyPage **    ppPP             
  159.     );                                   
  160. //;end_internal
  161. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0000_v0_0_c_ifspec;
  162. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0000_v0_0_s_ifspec;
  163. #ifndef __IHostDialogHelper_INTERFACE_DEFINED__
  164. #define __IHostDialogHelper_INTERFACE_DEFINED__
  165. /* interface IHostDialogHelper */
  166. /* [local][unique][uuid][object] */ 
  167. EXTERN_C const IID IID_IHostDialogHelper;
  168. #if defined(__cplusplus) && !defined(CINTERFACE)
  169.     
  170.     MIDL_INTERFACE("53DEC138-A51E-11d2-861E-00C04FA35C89")
  171.     IHostDialogHelper : public IUnknown
  172.     {
  173.     public:
  174.         virtual HRESULT STDMETHODCALLTYPE ShowHTMLDialog( 
  175.             HWND hwndParent,
  176.             IMoniker *pMk,
  177.             VARIANT *pvarArgIn,
  178.             WCHAR *pchOptions,
  179.             VARIANT *pvarArgOut,
  180.             IUnknown *punkHost) = 0;
  181.         
  182.     };
  183.     
  184. #else  /* C style interface */
  185.     typedef struct IHostDialogHelperVtbl
  186.     {
  187.         BEGIN_INTERFACE
  188.         
  189.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  190.             IHostDialogHelper * This,
  191.             /* [in] */ REFIID riid,
  192.             /* [iid_is][out] */ void **ppvObject);
  193.         
  194.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  195.             IHostDialogHelper * This);
  196.         
  197.         ULONG ( STDMETHODCALLTYPE *Release )( 
  198.             IHostDialogHelper * This);
  199.         
  200.         HRESULT ( STDMETHODCALLTYPE *ShowHTMLDialog )( 
  201.             IHostDialogHelper * This,
  202.             HWND hwndParent,
  203.             IMoniker *pMk,
  204.             VARIANT *pvarArgIn,
  205.             WCHAR *pchOptions,
  206.             VARIANT *pvarArgOut,
  207.             IUnknown *punkHost);
  208.         
  209.         END_INTERFACE
  210.     } IHostDialogHelperVtbl;
  211.     interface IHostDialogHelper
  212.     {
  213.         CONST_VTBL struct IHostDialogHelperVtbl *lpVtbl;
  214.     };
  215.     
  216. #ifdef COBJMACROS
  217. #define IHostDialogHelper_QueryInterface(This,riid,ppvObject)
  218.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  219. #define IHostDialogHelper_AddRef(This)
  220.     (This)->lpVtbl -> AddRef(This)
  221. #define IHostDialogHelper_Release(This)
  222.     (This)->lpVtbl -> Release(This)
  223. #define IHostDialogHelper_ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost)
  224.     (This)->lpVtbl -> ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost)
  225. #endif /* COBJMACROS */
  226. #endif  /* C style interface */
  227. HRESULT STDMETHODCALLTYPE IHostDialogHelper_ShowHTMLDialog_Proxy( 
  228.     IHostDialogHelper * This,
  229.     HWND hwndParent,
  230.     IMoniker *pMk,
  231.     VARIANT *pvarArgIn,
  232.     WCHAR *pchOptions,
  233.     VARIANT *pvarArgOut,
  234.     IUnknown *punkHost);
  235. void __RPC_STUB IHostDialogHelper_ShowHTMLDialog_Stub(
  236.     IRpcStubBuffer *This,
  237.     IRpcChannelBuffer *_pRpcChannelBuffer,
  238.     PRPC_MESSAGE _pRpcMessage,
  239.     DWORD *_pdwStubPhase);
  240. #endif  /* __IHostDialogHelper_INTERFACE_DEFINED__ */
  241. /* interface __MIDL_itf_mshtmhst_0267 */
  242. /* [local] */ 
  243. EXTERN_C const GUID CLSID_HostDialogHelper;
  244. //;begin_internal
  245. typedef 
  246. enum tagDOCHOSTUITYPE
  247.     { DOCHOSTUITYPE_BROWSE = 0,
  248. DOCHOSTUITYPE_AUTHOR = 1
  249.     }  DOCHOSTUITYPE;
  250. //;end_internal
  251. typedef 
  252. enum tagDOCHOSTUIDBLCLK
  253.     { DOCHOSTUIDBLCLK_DEFAULT = 0,
  254. DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
  255. DOCHOSTUIDBLCLK_SHOWCODE = 2
  256.     }  DOCHOSTUIDBLCLK;
  257. typedef 
  258. enum tagDOCHOSTUIFLAG
  259.     { DOCHOSTUIFLAG_DIALOG = 0x1,
  260. DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x2,
  261. DOCHOSTUIFLAG_NO3DBORDER = 0x4,
  262. DOCHOSTUIFLAG_SCROLL_NO = 0x8,
  263. DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x10,
  264. DOCHOSTUIFLAG_OPENNEWWIN = 0x20,
  265. DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x40,
  266. DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x80,
  267. DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x100,
  268. DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x200,
  269. DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x400,
  270. DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x800,
  271. DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x1000,
  272. DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x2000,
  273. DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x4000,
  274. DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x10000,
  275. DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x20000,
  276. DOCHOSTUIFLAG_THEME = 0x40000,
  277. DOCHOSTUIFLAG_NOTHEME = 0x80000,
  278. DOCHOSTUIFLAG_NOPICS = 0x100000,
  279. DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x200000,
  280. DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x400000
  281.     }  DOCHOSTUIFLAG;
  282. #define DOCHOSTUIATOM_ENABLE_HIRES _T("TridentEnableHiRes")
  283. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0267_v0_0_c_ifspec;
  284. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0267_v0_0_s_ifspec;
  285. #ifndef __IDocHostUIHandler_INTERFACE_DEFINED__
  286. #define __IDocHostUIHandler_INTERFACE_DEFINED__
  287. /* interface IDocHostUIHandler */
  288. /* [local][unique][uuid][object] */ 
  289. typedef struct _DOCHOSTUIINFO
  290.     {
  291.     ULONG cbSize;
  292.     DWORD dwFlags;
  293.     DWORD dwDoubleClick;
  294.     OLECHAR *pchHostCss;
  295.     OLECHAR *pchHostNS;
  296.     }  DOCHOSTUIINFO;
  297. EXTERN_C const IID IID_IDocHostUIHandler;
  298. #if defined(__cplusplus) && !defined(CINTERFACE)
  299.     
  300.     MIDL_INTERFACE("bd3f23c0-d43e-11cf-893b-00aa00bdce1a")
  301.     IDocHostUIHandler : public IUnknown
  302.     {
  303.     public:
  304.         virtual HRESULT STDMETHODCALLTYPE ShowContextMenu( 
  305.             /* [in] */ DWORD dwID,
  306.             /* [in] */ POINT *ppt,
  307.             /* [in] */ IUnknown *pcmdtReserved,
  308.             /* [in] */ IDispatch *pdispReserved) = 0;
  309.         
  310.         virtual HRESULT STDMETHODCALLTYPE GetHostInfo( 
  311.             /* [out][in] */ DOCHOSTUIINFO *pInfo) = 0;
  312.         
  313.         virtual HRESULT STDMETHODCALLTYPE ShowUI( 
  314.             /* [in] */ DWORD dwID,
  315.             /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  316.             /* [in] */ IOleCommandTarget *pCommandTarget,
  317.             /* [in] */ IOleInPlaceFrame *pFrame,
  318.             /* [in] */ IOleInPlaceUIWindow *pDoc) = 0;
  319.         
  320.         virtual HRESULT STDMETHODCALLTYPE HideUI( void) = 0;
  321.         
  322.         virtual HRESULT STDMETHODCALLTYPE UpdateUI( void) = 0;
  323.         
  324.         virtual HRESULT STDMETHODCALLTYPE EnableModeless( 
  325.             /* [in] */ BOOL fEnable) = 0;
  326.         
  327.         virtual HRESULT STDMETHODCALLTYPE OnDocWindowActivate( 
  328.             /* [in] */ BOOL fActivate) = 0;
  329.         
  330.         virtual HRESULT STDMETHODCALLTYPE OnFrameWindowActivate( 
  331.             /* [in] */ BOOL fActivate) = 0;
  332.         
  333.         virtual HRESULT STDMETHODCALLTYPE ResizeBorder( 
  334.             /* [in] */ LPCRECT prcBorder,
  335.             /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  336.             /* [in] */ BOOL fRameWindow) = 0;
  337.         
  338.         virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( 
  339.             /* [in] */ LPMSG lpMsg,
  340.             /* [in] */ const GUID *pguidCmdGroup,
  341.             /* [in] */ DWORD nCmdID) = 0;
  342.         
  343.         virtual HRESULT STDMETHODCALLTYPE GetOptionKeyPath( 
  344.             /* [out] */ LPOLESTR *pchKey,
  345.             /* [in] */ DWORD dw) = 0;
  346.         
  347.         virtual HRESULT STDMETHODCALLTYPE GetDropTarget( 
  348.             /* [in] */ IDropTarget *pDropTarget,
  349.             /* [out] */ IDropTarget **ppDropTarget) = 0;
  350.         
  351.         virtual HRESULT STDMETHODCALLTYPE GetExternal( 
  352.             /* [out] */ IDispatch **ppDispatch) = 0;
  353.         
  354.         virtual HRESULT STDMETHODCALLTYPE TranslateUrl( 
  355.             /* [in] */ DWORD dwTranslate,
  356.             /* [in] */ OLECHAR *pchURLIn,
  357.             /* [out] */ OLECHAR **ppchURLOut) = 0;
  358.         
  359.         virtual HRESULT STDMETHODCALLTYPE FilterDataObject( 
  360.             /* [in] */ IDataObject *pDO,
  361.             /* [out] */ IDataObject **ppDORet) = 0;
  362.         
  363.     };
  364.     
  365. #else  /* C style interface */
  366.     typedef struct IDocHostUIHandlerVtbl
  367.     {
  368.         BEGIN_INTERFACE
  369.         
  370.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  371.             IDocHostUIHandler * This,
  372.             /* [in] */ REFIID riid,
  373.             /* [iid_is][out] */ void **ppvObject);
  374.         
  375.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  376.             IDocHostUIHandler * This);
  377.         
  378.         ULONG ( STDMETHODCALLTYPE *Release )( 
  379.             IDocHostUIHandler * This);
  380.         
  381.         HRESULT ( STDMETHODCALLTYPE *ShowContextMenu )( 
  382.             IDocHostUIHandler * This,
  383.             /* [in] */ DWORD dwID,
  384.             /* [in] */ POINT *ppt,
  385.             /* [in] */ IUnknown *pcmdtReserved,
  386.             /* [in] */ IDispatch *pdispReserved);
  387.         
  388.         HRESULT ( STDMETHODCALLTYPE *GetHostInfo )( 
  389.             IDocHostUIHandler * This,
  390.             /* [out][in] */ DOCHOSTUIINFO *pInfo);
  391.         
  392.         HRESULT ( STDMETHODCALLTYPE *ShowUI )( 
  393.             IDocHostUIHandler * This,
  394.             /* [in] */ DWORD dwID,
  395.             /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  396.             /* [in] */ IOleCommandTarget *pCommandTarget,
  397.             /* [in] */ IOleInPlaceFrame *pFrame,
  398.             /* [in] */ IOleInPlaceUIWindow *pDoc);
  399.         
  400.         HRESULT ( STDMETHODCALLTYPE *HideUI )( 
  401.             IDocHostUIHandler * This);
  402.         
  403.         HRESULT ( STDMETHODCALLTYPE *UpdateUI )( 
  404.             IDocHostUIHandler * This);
  405.         
  406.         HRESULT ( STDMETHODCALLTYPE *EnableModeless )( 
  407.             IDocHostUIHandler * This,
  408.             /* [in] */ BOOL fEnable);
  409.         
  410.         HRESULT ( STDMETHODCALLTYPE *OnDocWindowActivate )( 
  411.             IDocHostUIHandler * This,
  412.             /* [in] */ BOOL fActivate);
  413.         
  414.         HRESULT ( STDMETHODCALLTYPE *OnFrameWindowActivate )( 
  415.             IDocHostUIHandler * This,
  416.             /* [in] */ BOOL fActivate);
  417.         
  418.         HRESULT ( STDMETHODCALLTYPE *ResizeBorder )( 
  419.             IDocHostUIHandler * This,
  420.             /* [in] */ LPCRECT prcBorder,
  421.             /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  422.             /* [in] */ BOOL fRameWindow);
  423.         
  424.         HRESULT ( STDMETHODCALLTYPE *TranslateAccelerator )( 
  425.             IDocHostUIHandler * This,
  426.             /* [in] */ LPMSG lpMsg,
  427.             /* [in] */ const GUID *pguidCmdGroup,
  428.             /* [in] */ DWORD nCmdID);
  429.         
  430.         HRESULT ( STDMETHODCALLTYPE *GetOptionKeyPath )( 
  431.             IDocHostUIHandler * This,
  432.             /* [out] */ LPOLESTR *pchKey,
  433.             /* [in] */ DWORD dw);
  434.         
  435.         HRESULT ( STDMETHODCALLTYPE *GetDropTarget )( 
  436.             IDocHostUIHandler * This,
  437.             /* [in] */ IDropTarget *pDropTarget,
  438.             /* [out] */ IDropTarget **ppDropTarget);
  439.         
  440.         HRESULT ( STDMETHODCALLTYPE *GetExternal )( 
  441.             IDocHostUIHandler * This,
  442.             /* [out] */ IDispatch **ppDispatch);
  443.         
  444.         HRESULT ( STDMETHODCALLTYPE *TranslateUrl )( 
  445.             IDocHostUIHandler * This,
  446.             /* [in] */ DWORD dwTranslate,
  447.             /* [in] */ OLECHAR *pchURLIn,
  448.             /* [out] */ OLECHAR **ppchURLOut);
  449.         
  450.         HRESULT ( STDMETHODCALLTYPE *FilterDataObject )( 
  451.             IDocHostUIHandler * This,
  452.             /* [in] */ IDataObject *pDO,
  453.             /* [out] */ IDataObject **ppDORet);
  454.         
  455.         END_INTERFACE
  456.     } IDocHostUIHandlerVtbl;
  457.     interface IDocHostUIHandler
  458.     {
  459.         CONST_VTBL struct IDocHostUIHandlerVtbl *lpVtbl;
  460.     };
  461.     
  462. #ifdef COBJMACROS
  463. #define IDocHostUIHandler_QueryInterface(This,riid,ppvObject)
  464.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  465. #define IDocHostUIHandler_AddRef(This)
  466.     (This)->lpVtbl -> AddRef(This)
  467. #define IDocHostUIHandler_Release(This)
  468.     (This)->lpVtbl -> Release(This)
  469. #define IDocHostUIHandler_ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  470.     (This)->lpVtbl -> ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  471. #define IDocHostUIHandler_GetHostInfo(This,pInfo)
  472.     (This)->lpVtbl -> GetHostInfo(This,pInfo)
  473. #define IDocHostUIHandler_ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  474.     (This)->lpVtbl -> ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  475. #define IDocHostUIHandler_HideUI(This)
  476.     (This)->lpVtbl -> HideUI(This)
  477. #define IDocHostUIHandler_UpdateUI(This)
  478.     (This)->lpVtbl -> UpdateUI(This)
  479. #define IDocHostUIHandler_EnableModeless(This,fEnable)
  480.     (This)->lpVtbl -> EnableModeless(This,fEnable)
  481. #define IDocHostUIHandler_OnDocWindowActivate(This,fActivate)
  482.     (This)->lpVtbl -> OnDocWindowActivate(This,fActivate)
  483. #define IDocHostUIHandler_OnFrameWindowActivate(This,fActivate)
  484.     (This)->lpVtbl -> OnFrameWindowActivate(This,fActivate)
  485. #define IDocHostUIHandler_ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  486.     (This)->lpVtbl -> ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  487. #define IDocHostUIHandler_TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  488.     (This)->lpVtbl -> TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  489. #define IDocHostUIHandler_GetOptionKeyPath(This,pchKey,dw)
  490.     (This)->lpVtbl -> GetOptionKeyPath(This,pchKey,dw)
  491. #define IDocHostUIHandler_GetDropTarget(This,pDropTarget,ppDropTarget)
  492.     (This)->lpVtbl -> GetDropTarget(This,pDropTarget,ppDropTarget)
  493. #define IDocHostUIHandler_GetExternal(This,ppDispatch)
  494.     (This)->lpVtbl -> GetExternal(This,ppDispatch)
  495. #define IDocHostUIHandler_TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  496.     (This)->lpVtbl -> TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  497. #define IDocHostUIHandler_FilterDataObject(This,pDO,ppDORet)
  498.     (This)->lpVtbl -> FilterDataObject(This,pDO,ppDORet)
  499. #endif /* COBJMACROS */
  500. #endif  /* C style interface */
  501. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_ShowContextMenu_Proxy( 
  502.     IDocHostUIHandler * This,
  503.     /* [in] */ DWORD dwID,
  504.     /* [in] */ POINT *ppt,
  505.     /* [in] */ IUnknown *pcmdtReserved,
  506.     /* [in] */ IDispatch *pdispReserved);
  507. void __RPC_STUB IDocHostUIHandler_ShowContextMenu_Stub(
  508.     IRpcStubBuffer *This,
  509.     IRpcChannelBuffer *_pRpcChannelBuffer,
  510.     PRPC_MESSAGE _pRpcMessage,
  511.     DWORD *_pdwStubPhase);
  512. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetHostInfo_Proxy( 
  513.     IDocHostUIHandler * This,
  514.     /* [out][in] */ DOCHOSTUIINFO *pInfo);
  515. void __RPC_STUB IDocHostUIHandler_GetHostInfo_Stub(
  516.     IRpcStubBuffer *This,
  517.     IRpcChannelBuffer *_pRpcChannelBuffer,
  518.     PRPC_MESSAGE _pRpcMessage,
  519.     DWORD *_pdwStubPhase);
  520. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_ShowUI_Proxy( 
  521.     IDocHostUIHandler * This,
  522.     /* [in] */ DWORD dwID,
  523.     /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  524.     /* [in] */ IOleCommandTarget *pCommandTarget,
  525.     /* [in] */ IOleInPlaceFrame *pFrame,
  526.     /* [in] */ IOleInPlaceUIWindow *pDoc);
  527. void __RPC_STUB IDocHostUIHandler_ShowUI_Stub(
  528.     IRpcStubBuffer *This,
  529.     IRpcChannelBuffer *_pRpcChannelBuffer,
  530.     PRPC_MESSAGE _pRpcMessage,
  531.     DWORD *_pdwStubPhase);
  532. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_HideUI_Proxy( 
  533.     IDocHostUIHandler * This);
  534. void __RPC_STUB IDocHostUIHandler_HideUI_Stub(
  535.     IRpcStubBuffer *This,
  536.     IRpcChannelBuffer *_pRpcChannelBuffer,
  537.     PRPC_MESSAGE _pRpcMessage,
  538.     DWORD *_pdwStubPhase);
  539. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_UpdateUI_Proxy( 
  540.     IDocHostUIHandler * This);
  541. void __RPC_STUB IDocHostUIHandler_UpdateUI_Stub(
  542.     IRpcStubBuffer *This,
  543.     IRpcChannelBuffer *_pRpcChannelBuffer,
  544.     PRPC_MESSAGE _pRpcMessage,
  545.     DWORD *_pdwStubPhase);
  546. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_EnableModeless_Proxy( 
  547.     IDocHostUIHandler * This,
  548.     /* [in] */ BOOL fEnable);
  549. void __RPC_STUB IDocHostUIHandler_EnableModeless_Stub(
  550.     IRpcStubBuffer *This,
  551.     IRpcChannelBuffer *_pRpcChannelBuffer,
  552.     PRPC_MESSAGE _pRpcMessage,
  553.     DWORD *_pdwStubPhase);
  554. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_OnDocWindowActivate_Proxy( 
  555.     IDocHostUIHandler * This,
  556.     /* [in] */ BOOL fActivate);
  557. void __RPC_STUB IDocHostUIHandler_OnDocWindowActivate_Stub(
  558.     IRpcStubBuffer *This,
  559.     IRpcChannelBuffer *_pRpcChannelBuffer,
  560.     PRPC_MESSAGE _pRpcMessage,
  561.     DWORD *_pdwStubPhase);
  562. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_OnFrameWindowActivate_Proxy( 
  563.     IDocHostUIHandler * This,
  564.     /* [in] */ BOOL fActivate);
  565. void __RPC_STUB IDocHostUIHandler_OnFrameWindowActivate_Stub(
  566.     IRpcStubBuffer *This,
  567.     IRpcChannelBuffer *_pRpcChannelBuffer,
  568.     PRPC_MESSAGE _pRpcMessage,
  569.     DWORD *_pdwStubPhase);
  570. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_ResizeBorder_Proxy( 
  571.     IDocHostUIHandler * This,
  572.     /* [in] */ LPCRECT prcBorder,
  573.     /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  574.     /* [in] */ BOOL fRameWindow);
  575. void __RPC_STUB IDocHostUIHandler_ResizeBorder_Stub(
  576.     IRpcStubBuffer *This,
  577.     IRpcChannelBuffer *_pRpcChannelBuffer,
  578.     PRPC_MESSAGE _pRpcMessage,
  579.     DWORD *_pdwStubPhase);
  580. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_TranslateAccelerator_Proxy( 
  581.     IDocHostUIHandler * This,
  582.     /* [in] */ LPMSG lpMsg,
  583.     /* [in] */ const GUID *pguidCmdGroup,
  584.     /* [in] */ DWORD nCmdID);
  585. void __RPC_STUB IDocHostUIHandler_TranslateAccelerator_Stub(
  586.     IRpcStubBuffer *This,
  587.     IRpcChannelBuffer *_pRpcChannelBuffer,
  588.     PRPC_MESSAGE _pRpcMessage,
  589.     DWORD *_pdwStubPhase);
  590. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetOptionKeyPath_Proxy( 
  591.     IDocHostUIHandler * This,
  592.     /* [out] */ LPOLESTR *pchKey,
  593.     /* [in] */ DWORD dw);
  594. void __RPC_STUB IDocHostUIHandler_GetOptionKeyPath_Stub(
  595.     IRpcStubBuffer *This,
  596.     IRpcChannelBuffer *_pRpcChannelBuffer,
  597.     PRPC_MESSAGE _pRpcMessage,
  598.     DWORD *_pdwStubPhase);
  599. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetDropTarget_Proxy( 
  600.     IDocHostUIHandler * This,
  601.     /* [in] */ IDropTarget *pDropTarget,
  602.     /* [out] */ IDropTarget **ppDropTarget);
  603. void __RPC_STUB IDocHostUIHandler_GetDropTarget_Stub(
  604.     IRpcStubBuffer *This,
  605.     IRpcChannelBuffer *_pRpcChannelBuffer,
  606.     PRPC_MESSAGE _pRpcMessage,
  607.     DWORD *_pdwStubPhase);
  608. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetExternal_Proxy( 
  609.     IDocHostUIHandler * This,
  610.     /* [out] */ IDispatch **ppDispatch);
  611. void __RPC_STUB IDocHostUIHandler_GetExternal_Stub(
  612.     IRpcStubBuffer *This,
  613.     IRpcChannelBuffer *_pRpcChannelBuffer,
  614.     PRPC_MESSAGE _pRpcMessage,
  615.     DWORD *_pdwStubPhase);
  616. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_TranslateUrl_Proxy( 
  617.     IDocHostUIHandler * This,
  618.     /* [in] */ DWORD dwTranslate,
  619.     /* [in] */ OLECHAR *pchURLIn,
  620.     /* [out] */ OLECHAR **ppchURLOut);
  621. void __RPC_STUB IDocHostUIHandler_TranslateUrl_Stub(
  622.     IRpcStubBuffer *This,
  623.     IRpcChannelBuffer *_pRpcChannelBuffer,
  624.     PRPC_MESSAGE _pRpcMessage,
  625.     DWORD *_pdwStubPhase);
  626. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_FilterDataObject_Proxy( 
  627.     IDocHostUIHandler * This,
  628.     /* [in] */ IDataObject *pDO,
  629.     /* [out] */ IDataObject **ppDORet);
  630. void __RPC_STUB IDocHostUIHandler_FilterDataObject_Stub(
  631.     IRpcStubBuffer *This,
  632.     IRpcChannelBuffer *_pRpcChannelBuffer,
  633.     PRPC_MESSAGE _pRpcMessage,
  634.     DWORD *_pdwStubPhase);
  635. #endif  /* __IDocHostUIHandler_INTERFACE_DEFINED__ */
  636. #ifndef __IDocHostUIHandler2_INTERFACE_DEFINED__
  637. #define __IDocHostUIHandler2_INTERFACE_DEFINED__
  638. /* interface IDocHostUIHandler2 */
  639. /* [local][unique][uuid][object] */ 
  640. EXTERN_C const IID IID_IDocHostUIHandler2;
  641. #if defined(__cplusplus) && !defined(CINTERFACE)
  642.     
  643.     MIDL_INTERFACE("3050f6d0-98b5-11cf-bb82-00aa00bdce0b")
  644.     IDocHostUIHandler2 : public IDocHostUIHandler
  645.     {
  646.     public:
  647.         virtual HRESULT STDMETHODCALLTYPE GetOverrideKeyPath( 
  648.             /* [out] */ LPOLESTR *pchKey,
  649.             /* [in] */ DWORD dw) = 0;
  650.         
  651.     };
  652.     
  653. #else  /* C style interface */
  654.     typedef struct IDocHostUIHandler2Vtbl
  655.     {
  656.         BEGIN_INTERFACE
  657.         
  658.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  659.             IDocHostUIHandler2 * This,
  660.             /* [in] */ REFIID riid,
  661.             /* [iid_is][out] */ void **ppvObject);
  662.         
  663.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  664.             IDocHostUIHandler2 * This);
  665.         
  666.         ULONG ( STDMETHODCALLTYPE *Release )( 
  667.             IDocHostUIHandler2 * This);
  668.         
  669.         HRESULT ( STDMETHODCALLTYPE *ShowContextMenu )( 
  670.             IDocHostUIHandler2 * This,
  671.             /* [in] */ DWORD dwID,
  672.             /* [in] */ POINT *ppt,
  673.             /* [in] */ IUnknown *pcmdtReserved,
  674.             /* [in] */ IDispatch *pdispReserved);
  675.         
  676.         HRESULT ( STDMETHODCALLTYPE *GetHostInfo )( 
  677.             IDocHostUIHandler2 * This,
  678.             /* [out][in] */ DOCHOSTUIINFO *pInfo);
  679.         
  680.         HRESULT ( STDMETHODCALLTYPE *ShowUI )( 
  681.             IDocHostUIHandler2 * This,
  682.             /* [in] */ DWORD dwID,
  683.             /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  684.             /* [in] */ IOleCommandTarget *pCommandTarget,
  685.             /* [in] */ IOleInPlaceFrame *pFrame,
  686.             /* [in] */ IOleInPlaceUIWindow *pDoc);
  687.         
  688.         HRESULT ( STDMETHODCALLTYPE *HideUI )( 
  689.             IDocHostUIHandler2 * This);
  690.         
  691.         HRESULT ( STDMETHODCALLTYPE *UpdateUI )( 
  692.             IDocHostUIHandler2 * This);
  693.         
  694.         HRESULT ( STDMETHODCALLTYPE *EnableModeless )( 
  695.             IDocHostUIHandler2 * This,
  696.             /* [in] */ BOOL fEnable);
  697.         
  698.         HRESULT ( STDMETHODCALLTYPE *OnDocWindowActivate )( 
  699.             IDocHostUIHandler2 * This,
  700.             /* [in] */ BOOL fActivate);
  701.         
  702.         HRESULT ( STDMETHODCALLTYPE *OnFrameWindowActivate )( 
  703.             IDocHostUIHandler2 * This,
  704.             /* [in] */ BOOL fActivate);
  705.         
  706.         HRESULT ( STDMETHODCALLTYPE *ResizeBorder )( 
  707.             IDocHostUIHandler2 * This,
  708.             /* [in] */ LPCRECT prcBorder,
  709.             /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  710.             /* [in] */ BOOL fRameWindow);
  711.         
  712.         HRESULT ( STDMETHODCALLTYPE *TranslateAccelerator )( 
  713.             IDocHostUIHandler2 * This,
  714.             /* [in] */ LPMSG lpMsg,
  715.             /* [in] */ const GUID *pguidCmdGroup,
  716.             /* [in] */ DWORD nCmdID);
  717.         
  718.         HRESULT ( STDMETHODCALLTYPE *GetOptionKeyPath )( 
  719.             IDocHostUIHandler2 * This,
  720.             /* [out] */ LPOLESTR *pchKey,
  721.             /* [in] */ DWORD dw);
  722.         
  723.         HRESULT ( STDMETHODCALLTYPE *GetDropTarget )( 
  724.             IDocHostUIHandler2 * This,
  725.             /* [in] */ IDropTarget *pDropTarget,
  726.             /* [out] */ IDropTarget **ppDropTarget);
  727.         
  728.         HRESULT ( STDMETHODCALLTYPE *GetExternal )( 
  729.             IDocHostUIHandler2 * This,
  730.             /* [out] */ IDispatch **ppDispatch);
  731.         
  732.         HRESULT ( STDMETHODCALLTYPE *TranslateUrl )( 
  733.             IDocHostUIHandler2 * This,
  734.             /* [in] */ DWORD dwTranslate,
  735.             /* [in] */ OLECHAR *pchURLIn,
  736.             /* [out] */ OLECHAR **ppchURLOut);
  737.         
  738.         HRESULT ( STDMETHODCALLTYPE *FilterDataObject )( 
  739.             IDocHostUIHandler2 * This,
  740.             /* [in] */ IDataObject *pDO,
  741.             /* [out] */ IDataObject **ppDORet);
  742.         
  743.         HRESULT ( STDMETHODCALLTYPE *GetOverrideKeyPath )( 
  744.             IDocHostUIHandler2 * This,
  745.             /* [out] */ LPOLESTR *pchKey,
  746.             /* [in] */ DWORD dw);
  747.         
  748.         END_INTERFACE
  749.     } IDocHostUIHandler2Vtbl;
  750.     interface IDocHostUIHandler2
  751.     {
  752.         CONST_VTBL struct IDocHostUIHandler2Vtbl *lpVtbl;
  753.     };
  754.     
  755. #ifdef COBJMACROS
  756. #define IDocHostUIHandler2_QueryInterface(This,riid,ppvObject)
  757.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  758. #define IDocHostUIHandler2_AddRef(This)
  759.     (This)->lpVtbl -> AddRef(This)
  760. #define IDocHostUIHandler2_Release(This)
  761.     (This)->lpVtbl -> Release(This)
  762. #define IDocHostUIHandler2_ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  763.     (This)->lpVtbl -> ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  764. #define IDocHostUIHandler2_GetHostInfo(This,pInfo)
  765.     (This)->lpVtbl -> GetHostInfo(This,pInfo)
  766. #define IDocHostUIHandler2_ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  767.     (This)->lpVtbl -> ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  768. #define IDocHostUIHandler2_HideUI(This)
  769.     (This)->lpVtbl -> HideUI(This)
  770. #define IDocHostUIHandler2_UpdateUI(This)
  771.     (This)->lpVtbl -> UpdateUI(This)
  772. #define IDocHostUIHandler2_EnableModeless(This,fEnable)
  773.     (This)->lpVtbl -> EnableModeless(This,fEnable)
  774. #define IDocHostUIHandler2_OnDocWindowActivate(This,fActivate)
  775.     (This)->lpVtbl -> OnDocWindowActivate(This,fActivate)
  776. #define IDocHostUIHandler2_OnFrameWindowActivate(This,fActivate)
  777.     (This)->lpVtbl -> OnFrameWindowActivate(This,fActivate)
  778. #define IDocHostUIHandler2_ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  779.     (This)->lpVtbl -> ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  780. #define IDocHostUIHandler2_TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  781.     (This)->lpVtbl -> TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  782. #define IDocHostUIHandler2_GetOptionKeyPath(This,pchKey,dw)
  783.     (This)->lpVtbl -> GetOptionKeyPath(This,pchKey,dw)
  784. #define IDocHostUIHandler2_GetDropTarget(This,pDropTarget,ppDropTarget)
  785.     (This)->lpVtbl -> GetDropTarget(This,pDropTarget,ppDropTarget)
  786. #define IDocHostUIHandler2_GetExternal(This,ppDispatch)
  787.     (This)->lpVtbl -> GetExternal(This,ppDispatch)
  788. #define IDocHostUIHandler2_TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  789.     (This)->lpVtbl -> TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  790. #define IDocHostUIHandler2_FilterDataObject(This,pDO,ppDORet)
  791.     (This)->lpVtbl -> FilterDataObject(This,pDO,ppDORet)
  792. #define IDocHostUIHandler2_GetOverrideKeyPath(This,pchKey,dw)
  793.     (This)->lpVtbl -> GetOverrideKeyPath(This,pchKey,dw)
  794. #endif /* COBJMACROS */
  795. #endif  /* C style interface */
  796. HRESULT STDMETHODCALLTYPE IDocHostUIHandler2_GetOverrideKeyPath_Proxy( 
  797.     IDocHostUIHandler2 * This,
  798.     /* [out] */ LPOLESTR *pchKey,
  799.     /* [in] */ DWORD dw);
  800. void __RPC_STUB IDocHostUIHandler2_GetOverrideKeyPath_Stub(
  801.     IRpcStubBuffer *This,
  802.     IRpcChannelBuffer *_pRpcChannelBuffer,
  803.     PRPC_MESSAGE _pRpcMessage,
  804.     DWORD *_pdwStubPhase);
  805. #endif  /* __IDocHostUIHandler2_INTERFACE_DEFINED__ */
  806. /* interface __MIDL_itf_mshtmhst_0269 */
  807. /* [local] */ 
  808. DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);
  809. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0269_v0_0_c_ifspec;
  810. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0269_v0_0_s_ifspec;
  811. #ifndef __ICustomDoc_INTERFACE_DEFINED__
  812. #define __ICustomDoc_INTERFACE_DEFINED__
  813. /* interface ICustomDoc */
  814. /* [local][unique][uuid][object] */ 
  815. EXTERN_C const IID IID_ICustomDoc;
  816. #if defined(__cplusplus) && !defined(CINTERFACE)
  817.     
  818.     MIDL_INTERFACE("3050f3f0-98b5-11cf-bb82-00aa00bdce0b")
  819.     ICustomDoc : public IUnknown
  820.     {
  821.     public:
  822.         virtual HRESULT STDMETHODCALLTYPE SetUIHandler( 
  823.             /* [in] */ IDocHostUIHandler *pUIHandler) = 0;
  824.         
  825.     };
  826.     
  827. #else  /* C style interface */
  828.     typedef struct ICustomDocVtbl
  829.     {
  830.         BEGIN_INTERFACE
  831.         
  832.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  833.             ICustomDoc * This,
  834.             /* [in] */ REFIID riid,
  835.             /* [iid_is][out] */ void **ppvObject);
  836.         
  837.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  838.             ICustomDoc * This);
  839.         
  840.         ULONG ( STDMETHODCALLTYPE *Release )( 
  841.             ICustomDoc * This);
  842.         
  843.         HRESULT ( STDMETHODCALLTYPE *SetUIHandler )( 
  844.             ICustomDoc * This,
  845.             /* [in] */ IDocHostUIHandler *pUIHandler);
  846.         
  847.         END_INTERFACE
  848.     } ICustomDocVtbl;
  849.     interface ICustomDoc
  850.     {
  851.         CONST_VTBL struct ICustomDocVtbl *lpVtbl;
  852.     };
  853.     
  854. #ifdef COBJMACROS
  855. #define ICustomDoc_QueryInterface(This,riid,ppvObject)
  856.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  857. #define ICustomDoc_AddRef(This)
  858.     (This)->lpVtbl -> AddRef(This)
  859. #define ICustomDoc_Release(This)
  860.     (This)->lpVtbl -> Release(This)
  861. #define ICustomDoc_SetUIHandler(This,pUIHandler)
  862.     (This)->lpVtbl -> SetUIHandler(This,pUIHandler)
  863. #endif /* COBJMACROS */
  864. #endif  /* C style interface */
  865. HRESULT STDMETHODCALLTYPE ICustomDoc_SetUIHandler_Proxy( 
  866.     ICustomDoc * This,
  867.     /* [in] */ IDocHostUIHandler *pUIHandler);
  868. void __RPC_STUB ICustomDoc_SetUIHandler_Stub(
  869.     IRpcStubBuffer *This,
  870.     IRpcChannelBuffer *_pRpcChannelBuffer,
  871.     PRPC_MESSAGE _pRpcMessage,
  872.     DWORD *_pdwStubPhase);
  873. #endif  /* __ICustomDoc_INTERFACE_DEFINED__ */
  874. #ifndef __IDocHostShowUI_INTERFACE_DEFINED__
  875. #define __IDocHostShowUI_INTERFACE_DEFINED__
  876. /* interface IDocHostShowUI */
  877. /* [local][unique][uuid][object] */ 
  878. EXTERN_C const IID IID_IDocHostShowUI;
  879. #if defined(__cplusplus) && !defined(CINTERFACE)
  880.     
  881.     MIDL_INTERFACE("c4d244b0-d43e-11cf-893b-00aa00bdce1a")
  882.     IDocHostShowUI : public IUnknown
  883.     {
  884.     public:
  885.         virtual HRESULT STDMETHODCALLTYPE ShowMessage( 
  886.             /* [in] */ HWND hwnd,
  887.             /* [in] */ LPOLESTR lpstrText,
  888.             /* [in] */ LPOLESTR lpstrCaption,
  889.             /* [in] */ DWORD dwType,
  890.             /* [in] */ LPOLESTR lpstrHelpFile,
  891.             /* [in] */ DWORD dwHelpContext,
  892.             /* [out] */ LRESULT *plResult) = 0;
  893.         
  894.         virtual HRESULT STDMETHODCALLTYPE ShowHelp( 
  895.             /* [in] */ HWND hwnd,
  896.             /* [in] */ LPOLESTR pszHelpFile,
  897.             /* [in] */ UINT uCommand,
  898.             /* [in] */ DWORD dwData,
  899.             /* [in] */ POINT ptMouse,
  900.             /* [out] */ IDispatch *pDispatchObjectHit) = 0;
  901.         
  902.     };
  903.     
  904. #else  /* C style interface */
  905.     typedef struct IDocHostShowUIVtbl
  906.     {
  907.         BEGIN_INTERFACE
  908.         
  909.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  910.             IDocHostShowUI * This,
  911.             /* [in] */ REFIID riid,
  912.             /* [iid_is][out] */ void **ppvObject);
  913.         
  914.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  915.             IDocHostShowUI * This);
  916.         
  917.         ULONG ( STDMETHODCALLTYPE *Release )( 
  918.             IDocHostShowUI * This);
  919.         
  920.         HRESULT ( STDMETHODCALLTYPE *ShowMessage )( 
  921.             IDocHostShowUI * This,
  922.             /* [in] */ HWND hwnd,
  923.             /* [in] */ LPOLESTR lpstrText,
  924.             /* [in] */ LPOLESTR lpstrCaption,
  925.             /* [in] */ DWORD dwType,
  926.             /* [in] */ LPOLESTR lpstrHelpFile,
  927.             /* [in] */ DWORD dwHelpContext,
  928.             /* [out] */ LRESULT *plResult);
  929.         
  930.         HRESULT ( STDMETHODCALLTYPE *ShowHelp )( 
  931.             IDocHostShowUI * This,
  932.             /* [in] */ HWND hwnd,
  933.             /* [in] */ LPOLESTR pszHelpFile,
  934.             /* [in] */ UINT uCommand,
  935.             /* [in] */ DWORD dwData,
  936.             /* [in] */ POINT ptMouse,
  937.             /* [out] */ IDispatch *pDispatchObjectHit);
  938.         
  939.         END_INTERFACE
  940.     } IDocHostShowUIVtbl;
  941.     interface IDocHostShowUI
  942.     {
  943.         CONST_VTBL struct IDocHostShowUIVtbl *lpVtbl;
  944.     };
  945.     
  946. #ifdef COBJMACROS
  947. #define IDocHostShowUI_QueryInterface(This,riid,ppvObject)
  948.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  949. #define IDocHostShowUI_AddRef(This)
  950.     (This)->lpVtbl -> AddRef(This)
  951. #define IDocHostShowUI_Release(This)
  952.     (This)->lpVtbl -> Release(This)
  953. #define IDocHostShowUI_ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult)
  954.     (This)->lpVtbl -> ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult)
  955. #define IDocHostShowUI_ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit)
  956.     (This)->lpVtbl -> ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit)
  957. #endif /* COBJMACROS */
  958. #endif  /* C style interface */
  959. HRESULT STDMETHODCALLTYPE IDocHostShowUI_ShowMessage_Proxy( 
  960.     IDocHostShowUI * This,
  961.     /* [in] */ HWND hwnd,
  962.     /* [in] */ LPOLESTR lpstrText,
  963.     /* [in] */ LPOLESTR lpstrCaption,
  964.     /* [in] */ DWORD dwType,
  965.     /* [in] */ LPOLESTR lpstrHelpFile,
  966.     /* [in] */ DWORD dwHelpContext,
  967.     /* [out] */ LRESULT *plResult);
  968. void __RPC_STUB IDocHostShowUI_ShowMessage_Stub(
  969.     IRpcStubBuffer *This,
  970.     IRpcChannelBuffer *_pRpcChannelBuffer,
  971.     PRPC_MESSAGE _pRpcMessage,
  972.     DWORD *_pdwStubPhase);
  973. HRESULT STDMETHODCALLTYPE IDocHostShowUI_ShowHelp_Proxy( 
  974.     IDocHostShowUI * This,
  975.     /* [in] */ HWND hwnd,
  976.     /* [in] */ LPOLESTR pszHelpFile,
  977.     /* [in] */ UINT uCommand,
  978.     /* [in] */ DWORD dwData,
  979.     /* [in] */ POINT ptMouse,
  980.     /* [out] */ IDispatch *pDispatchObjectHit);
  981. void __RPC_STUB IDocHostShowUI_ShowHelp_Stub(
  982.     IRpcStubBuffer *This,
  983.     IRpcChannelBuffer *_pRpcChannelBuffer,
  984.     PRPC_MESSAGE _pRpcMessage,
  985.     DWORD *_pdwStubPhase);
  986. #endif  /* __IDocHostShowUI_INTERFACE_DEFINED__ */
  987. /* interface __MIDL_itf_mshtmhst_0271 */
  988. /* [local] */ 
  989. #define IClassFactory3      IClassFactoryEx
  990. #define IID_IClassFactory3  IID_IClassFactoryEx
  991. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0271_v0_0_c_ifspec;
  992. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0271_v0_0_s_ifspec;
  993. #ifndef __IClassFactoryEx_INTERFACE_DEFINED__
  994. #define __IClassFactoryEx_INTERFACE_DEFINED__
  995. /* interface IClassFactoryEx */
  996. /* [local][unique][uuid][object] */ 
  997. EXTERN_C const IID IID_IClassFactoryEx;
  998. #if defined(__cplusplus) && !defined(CINTERFACE)
  999.     
  1000.     MIDL_INTERFACE("342D1EA0-AE25-11D1-89C5-006008C3FBFC")
  1001.     IClassFactoryEx : public IClassFactory
  1002.     {
  1003.     public:
  1004.         virtual HRESULT STDMETHODCALLTYPE CreateInstanceWithContext( 
  1005.             IUnknown *punkContext,
  1006.             IUnknown *punkOuter,
  1007.             REFIID riid,
  1008.             /* [out] */ void **ppv) = 0;
  1009.         
  1010.     };
  1011.     
  1012. #else  /* C style interface */
  1013.     typedef struct IClassFactoryExVtbl
  1014.     {
  1015.         BEGIN_INTERFACE
  1016.         
  1017.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1018.             IClassFactoryEx * This,
  1019.             /* [in] */ REFIID riid,
  1020.             /* [iid_is][out] */ void **ppvObject);
  1021.         
  1022.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1023.             IClassFactoryEx * This);
  1024.         
  1025.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1026.             IClassFactoryEx * This);
  1027.         
  1028.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )( 
  1029.             IClassFactoryEx * This,
  1030.             /* [unique][in] */ IUnknown *pUnkOuter,
  1031.             /* [in] */ REFIID riid,
  1032.             /* [iid_is][out] */ void **ppvObject);
  1033.         
  1034.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *LockServer )( 
  1035.             IClassFactoryEx * This,
  1036.             /* [in] */ BOOL fLock);
  1037.         
  1038.         HRESULT ( STDMETHODCALLTYPE *CreateInstanceWithContext )( 
  1039.             IClassFactoryEx * This,
  1040.             IUnknown *punkContext,
  1041.             IUnknown *punkOuter,
  1042.             REFIID riid,
  1043.             /* [out] */ void **ppv);
  1044.         
  1045.         END_INTERFACE
  1046.     } IClassFactoryExVtbl;
  1047.     interface IClassFactoryEx
  1048.     {
  1049.         CONST_VTBL struct IClassFactoryExVtbl *lpVtbl;
  1050.     };
  1051.     
  1052. #ifdef COBJMACROS
  1053. #define IClassFactoryEx_QueryInterface(This,riid,ppvObject)
  1054.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1055. #define IClassFactoryEx_AddRef(This)
  1056.     (This)->lpVtbl -> AddRef(This)
  1057. #define IClassFactoryEx_Release(This)
  1058.     (This)->lpVtbl -> Release(This)
  1059. #define IClassFactoryEx_CreateInstance(This,pUnkOuter,riid,ppvObject)
  1060.     (This)->lpVtbl -> CreateInstance(This,pUnkOuter,riid,ppvObject)
  1061. #define IClassFactoryEx_LockServer(This,fLock)
  1062.     (This)->lpVtbl -> LockServer(This,fLock)
  1063. #define IClassFactoryEx_CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv)
  1064.     (This)->lpVtbl -> CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv)
  1065. #endif /* COBJMACROS */
  1066. #endif  /* C style interface */
  1067. HRESULT STDMETHODCALLTYPE IClassFactoryEx_CreateInstanceWithContext_Proxy( 
  1068.     IClassFactoryEx * This,
  1069.     IUnknown *punkContext,
  1070.     IUnknown *punkOuter,
  1071.     REFIID riid,
  1072.     /* [out] */ void **ppv);
  1073. void __RPC_STUB IClassFactoryEx_CreateInstanceWithContext_Stub(
  1074.     IRpcStubBuffer *This,
  1075.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1076.     PRPC_MESSAGE _pRpcMessage,
  1077.     DWORD *_pdwStubPhase);
  1078. #endif  /* __IClassFactoryEx_INTERFACE_DEFINED__ */
  1079. /* interface __MIDL_itf_mshtmhst_0272 */
  1080. /* [local] */ 
  1081. #endif
  1082. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0272_v0_0_c_ifspec;
  1083. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0272_v0_0_s_ifspec;
  1084. /* Additional Prototypes for ALL interfaces */
  1085. /* end of Additional Prototypes */
  1086. #ifdef __cplusplus
  1087. }
  1088. #endif
  1089. #endif