Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1412 lines
43 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for mshtmhst.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  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. MIDL_INTERFACE("53DEC138-A51E-11d2-861E-00C04FA35C89")
  170. IHostDialogHelper : public IUnknown
  171. {
  172. public:
  173. virtual HRESULT STDMETHODCALLTYPE ShowHTMLDialog(
  174. HWND hwndParent,
  175. IMoniker *pMk,
  176. VARIANT *pvarArgIn,
  177. WCHAR *pchOptions,
  178. VARIANT *pvarArgOut,
  179. IUnknown *punkHost) = 0;
  180. };
  181. #else /* C style interface */
  182. typedef struct IHostDialogHelperVtbl
  183. {
  184. BEGIN_INTERFACE
  185. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  186. IHostDialogHelper * This,
  187. /* [in] */ REFIID riid,
  188. /* [iid_is][out] */ void **ppvObject);
  189. ULONG ( STDMETHODCALLTYPE *AddRef )(
  190. IHostDialogHelper * This);
  191. ULONG ( STDMETHODCALLTYPE *Release )(
  192. IHostDialogHelper * This);
  193. HRESULT ( STDMETHODCALLTYPE *ShowHTMLDialog )(
  194. IHostDialogHelper * This,
  195. HWND hwndParent,
  196. IMoniker *pMk,
  197. VARIANT *pvarArgIn,
  198. WCHAR *pchOptions,
  199. VARIANT *pvarArgOut,
  200. IUnknown *punkHost);
  201. END_INTERFACE
  202. } IHostDialogHelperVtbl;
  203. interface IHostDialogHelper
  204. {
  205. CONST_VTBL struct IHostDialogHelperVtbl *lpVtbl;
  206. };
  207. #ifdef COBJMACROS
  208. #define IHostDialogHelper_QueryInterface(This,riid,ppvObject) \
  209. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  210. #define IHostDialogHelper_AddRef(This) \
  211. (This)->lpVtbl -> AddRef(This)
  212. #define IHostDialogHelper_Release(This) \
  213. (This)->lpVtbl -> Release(This)
  214. #define IHostDialogHelper_ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost) \
  215. (This)->lpVtbl -> ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost)
  216. #endif /* COBJMACROS */
  217. #endif /* C style interface */
  218. HRESULT STDMETHODCALLTYPE IHostDialogHelper_ShowHTMLDialog_Proxy(
  219. IHostDialogHelper * This,
  220. HWND hwndParent,
  221. IMoniker *pMk,
  222. VARIANT *pvarArgIn,
  223. WCHAR *pchOptions,
  224. VARIANT *pvarArgOut,
  225. IUnknown *punkHost);
  226. void __RPC_STUB IHostDialogHelper_ShowHTMLDialog_Stub(
  227. IRpcStubBuffer *This,
  228. IRpcChannelBuffer *_pRpcChannelBuffer,
  229. PRPC_MESSAGE _pRpcMessage,
  230. DWORD *_pdwStubPhase);
  231. #endif /* __IHostDialogHelper_INTERFACE_DEFINED__ */
  232. /* interface __MIDL_itf_mshtmhst_0273 */
  233. /* [local] */
  234. EXTERN_C const GUID CLSID_HostDialogHelper;
  235. //;begin_internal
  236. typedef
  237. enum tagDOCHOSTUITYPE
  238. { DOCHOSTUITYPE_BROWSE = 0,
  239. DOCHOSTUITYPE_AUTHOR = 1
  240. } DOCHOSTUITYPE;
  241. //;end_internal
  242. typedef
  243. enum tagDOCHOSTUIDBLCLK
  244. { DOCHOSTUIDBLCLK_DEFAULT = 0,
  245. DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
  246. DOCHOSTUIDBLCLK_SHOWCODE = 2
  247. } DOCHOSTUIDBLCLK;
  248. typedef
  249. enum tagDOCHOSTUIFLAG
  250. { DOCHOSTUIFLAG_DIALOG = 0x1,
  251. DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x2,
  252. DOCHOSTUIFLAG_NO3DBORDER = 0x4,
  253. DOCHOSTUIFLAG_SCROLL_NO = 0x8,
  254. DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x10,
  255. DOCHOSTUIFLAG_OPENNEWWIN = 0x20,
  256. DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x40,
  257. DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x80,
  258. DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x100,
  259. DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x200,
  260. DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x400,
  261. DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x800,
  262. DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x1000,
  263. DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x2000,
  264. DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x4000,
  265. DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x10000,
  266. DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x20000,
  267. DOCHOSTUIFLAG_THEME = 0x40000,
  268. DOCHOSTUIFLAG_NOTHEME = 0x80000,
  269. DOCHOSTUIFLAG_NOPICS = 0x100000,
  270. DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x200000,
  271. DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x400000,
  272. DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK = 0x800000,
  273. DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x1000000
  274. } DOCHOSTUIFLAG;
  275. #define DOCHOSTUIATOM_ENABLE_HIRES _T("TridentEnableHiRes")
  276. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0273_v0_0_c_ifspec;
  277. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0273_v0_0_s_ifspec;
  278. #ifndef __IDocHostUIHandler_INTERFACE_DEFINED__
  279. #define __IDocHostUIHandler_INTERFACE_DEFINED__
  280. /* interface IDocHostUIHandler */
  281. /* [local][unique][uuid][object] */
  282. typedef struct _DOCHOSTUIINFO
  283. {
  284. ULONG cbSize;
  285. DWORD dwFlags;
  286. DWORD dwDoubleClick;
  287. OLECHAR *pchHostCss;
  288. OLECHAR *pchHostNS;
  289. } DOCHOSTUIINFO;
  290. EXTERN_C const IID IID_IDocHostUIHandler;
  291. #if defined(__cplusplus) && !defined(CINTERFACE)
  292. MIDL_INTERFACE("bd3f23c0-d43e-11cf-893b-00aa00bdce1a")
  293. IDocHostUIHandler : public IUnknown
  294. {
  295. public:
  296. virtual HRESULT STDMETHODCALLTYPE ShowContextMenu(
  297. /* [in] */ DWORD dwID,
  298. /* [in] */ POINT *ppt,
  299. /* [in] */ IUnknown *pcmdtReserved,
  300. /* [in] */ IDispatch *pdispReserved) = 0;
  301. virtual HRESULT STDMETHODCALLTYPE GetHostInfo(
  302. /* [out][in] */ DOCHOSTUIINFO *pInfo) = 0;
  303. virtual HRESULT STDMETHODCALLTYPE ShowUI(
  304. /* [in] */ DWORD dwID,
  305. /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  306. /* [in] */ IOleCommandTarget *pCommandTarget,
  307. /* [in] */ IOleInPlaceFrame *pFrame,
  308. /* [in] */ IOleInPlaceUIWindow *pDoc) = 0;
  309. virtual HRESULT STDMETHODCALLTYPE HideUI( void) = 0;
  310. virtual HRESULT STDMETHODCALLTYPE UpdateUI( void) = 0;
  311. virtual HRESULT STDMETHODCALLTYPE EnableModeless(
  312. /* [in] */ BOOL fEnable) = 0;
  313. virtual HRESULT STDMETHODCALLTYPE OnDocWindowActivate(
  314. /* [in] */ BOOL fActivate) = 0;
  315. virtual HRESULT STDMETHODCALLTYPE OnFrameWindowActivate(
  316. /* [in] */ BOOL fActivate) = 0;
  317. virtual HRESULT STDMETHODCALLTYPE ResizeBorder(
  318. /* [in] */ LPCRECT prcBorder,
  319. /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  320. /* [in] */ BOOL fRameWindow) = 0;
  321. virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator(
  322. /* [in] */ LPMSG lpMsg,
  323. /* [in] */ const GUID *pguidCmdGroup,
  324. /* [in] */ DWORD nCmdID) = 0;
  325. virtual HRESULT STDMETHODCALLTYPE GetOptionKeyPath(
  326. /* [out] */ LPOLESTR *pchKey,
  327. /* [in] */ DWORD dw) = 0;
  328. virtual HRESULT STDMETHODCALLTYPE GetDropTarget(
  329. /* [in] */ IDropTarget *pDropTarget,
  330. /* [out] */ IDropTarget **ppDropTarget) = 0;
  331. virtual HRESULT STDMETHODCALLTYPE GetExternal(
  332. /* [out] */ IDispatch **ppDispatch) = 0;
  333. virtual HRESULT STDMETHODCALLTYPE TranslateUrl(
  334. /* [in] */ DWORD dwTranslate,
  335. /* [in] */ OLECHAR *pchURLIn,
  336. /* [out] */ OLECHAR **ppchURLOut) = 0;
  337. virtual HRESULT STDMETHODCALLTYPE FilterDataObject(
  338. /* [in] */ IDataObject *pDO,
  339. /* [out] */ IDataObject **ppDORet) = 0;
  340. };
  341. #else /* C style interface */
  342. typedef struct IDocHostUIHandlerVtbl
  343. {
  344. BEGIN_INTERFACE
  345. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  346. IDocHostUIHandler * This,
  347. /* [in] */ REFIID riid,
  348. /* [iid_is][out] */ void **ppvObject);
  349. ULONG ( STDMETHODCALLTYPE *AddRef )(
  350. IDocHostUIHandler * This);
  351. ULONG ( STDMETHODCALLTYPE *Release )(
  352. IDocHostUIHandler * This);
  353. HRESULT ( STDMETHODCALLTYPE *ShowContextMenu )(
  354. IDocHostUIHandler * This,
  355. /* [in] */ DWORD dwID,
  356. /* [in] */ POINT *ppt,
  357. /* [in] */ IUnknown *pcmdtReserved,
  358. /* [in] */ IDispatch *pdispReserved);
  359. HRESULT ( STDMETHODCALLTYPE *GetHostInfo )(
  360. IDocHostUIHandler * This,
  361. /* [out][in] */ DOCHOSTUIINFO *pInfo);
  362. HRESULT ( STDMETHODCALLTYPE *ShowUI )(
  363. IDocHostUIHandler * This,
  364. /* [in] */ DWORD dwID,
  365. /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  366. /* [in] */ IOleCommandTarget *pCommandTarget,
  367. /* [in] */ IOleInPlaceFrame *pFrame,
  368. /* [in] */ IOleInPlaceUIWindow *pDoc);
  369. HRESULT ( STDMETHODCALLTYPE *HideUI )(
  370. IDocHostUIHandler * This);
  371. HRESULT ( STDMETHODCALLTYPE *UpdateUI )(
  372. IDocHostUIHandler * This);
  373. HRESULT ( STDMETHODCALLTYPE *EnableModeless )(
  374. IDocHostUIHandler * This,
  375. /* [in] */ BOOL fEnable);
  376. HRESULT ( STDMETHODCALLTYPE *OnDocWindowActivate )(
  377. IDocHostUIHandler * This,
  378. /* [in] */ BOOL fActivate);
  379. HRESULT ( STDMETHODCALLTYPE *OnFrameWindowActivate )(
  380. IDocHostUIHandler * This,
  381. /* [in] */ BOOL fActivate);
  382. HRESULT ( STDMETHODCALLTYPE *ResizeBorder )(
  383. IDocHostUIHandler * This,
  384. /* [in] */ LPCRECT prcBorder,
  385. /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  386. /* [in] */ BOOL fRameWindow);
  387. HRESULT ( STDMETHODCALLTYPE *TranslateAccelerator )(
  388. IDocHostUIHandler * This,
  389. /* [in] */ LPMSG lpMsg,
  390. /* [in] */ const GUID *pguidCmdGroup,
  391. /* [in] */ DWORD nCmdID);
  392. HRESULT ( STDMETHODCALLTYPE *GetOptionKeyPath )(
  393. IDocHostUIHandler * This,
  394. /* [out] */ LPOLESTR *pchKey,
  395. /* [in] */ DWORD dw);
  396. HRESULT ( STDMETHODCALLTYPE *GetDropTarget )(
  397. IDocHostUIHandler * This,
  398. /* [in] */ IDropTarget *pDropTarget,
  399. /* [out] */ IDropTarget **ppDropTarget);
  400. HRESULT ( STDMETHODCALLTYPE *GetExternal )(
  401. IDocHostUIHandler * This,
  402. /* [out] */ IDispatch **ppDispatch);
  403. HRESULT ( STDMETHODCALLTYPE *TranslateUrl )(
  404. IDocHostUIHandler * This,
  405. /* [in] */ DWORD dwTranslate,
  406. /* [in] */ OLECHAR *pchURLIn,
  407. /* [out] */ OLECHAR **ppchURLOut);
  408. HRESULT ( STDMETHODCALLTYPE *FilterDataObject )(
  409. IDocHostUIHandler * This,
  410. /* [in] */ IDataObject *pDO,
  411. /* [out] */ IDataObject **ppDORet);
  412. END_INTERFACE
  413. } IDocHostUIHandlerVtbl;
  414. interface IDocHostUIHandler
  415. {
  416. CONST_VTBL struct IDocHostUIHandlerVtbl *lpVtbl;
  417. };
  418. #ifdef COBJMACROS
  419. #define IDocHostUIHandler_QueryInterface(This,riid,ppvObject) \
  420. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  421. #define IDocHostUIHandler_AddRef(This) \
  422. (This)->lpVtbl -> AddRef(This)
  423. #define IDocHostUIHandler_Release(This) \
  424. (This)->lpVtbl -> Release(This)
  425. #define IDocHostUIHandler_ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved) \
  426. (This)->lpVtbl -> ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  427. #define IDocHostUIHandler_GetHostInfo(This,pInfo) \
  428. (This)->lpVtbl -> GetHostInfo(This,pInfo)
  429. #define IDocHostUIHandler_ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc) \
  430. (This)->lpVtbl -> ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  431. #define IDocHostUIHandler_HideUI(This) \
  432. (This)->lpVtbl -> HideUI(This)
  433. #define IDocHostUIHandler_UpdateUI(This) \
  434. (This)->lpVtbl -> UpdateUI(This)
  435. #define IDocHostUIHandler_EnableModeless(This,fEnable) \
  436. (This)->lpVtbl -> EnableModeless(This,fEnable)
  437. #define IDocHostUIHandler_OnDocWindowActivate(This,fActivate) \
  438. (This)->lpVtbl -> OnDocWindowActivate(This,fActivate)
  439. #define IDocHostUIHandler_OnFrameWindowActivate(This,fActivate) \
  440. (This)->lpVtbl -> OnFrameWindowActivate(This,fActivate)
  441. #define IDocHostUIHandler_ResizeBorder(This,prcBorder,pUIWindow,fRameWindow) \
  442. (This)->lpVtbl -> ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  443. #define IDocHostUIHandler_TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID) \
  444. (This)->lpVtbl -> TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  445. #define IDocHostUIHandler_GetOptionKeyPath(This,pchKey,dw) \
  446. (This)->lpVtbl -> GetOptionKeyPath(This,pchKey,dw)
  447. #define IDocHostUIHandler_GetDropTarget(This,pDropTarget,ppDropTarget) \
  448. (This)->lpVtbl -> GetDropTarget(This,pDropTarget,ppDropTarget)
  449. #define IDocHostUIHandler_GetExternal(This,ppDispatch) \
  450. (This)->lpVtbl -> GetExternal(This,ppDispatch)
  451. #define IDocHostUIHandler_TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut) \
  452. (This)->lpVtbl -> TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  453. #define IDocHostUIHandler_FilterDataObject(This,pDO,ppDORet) \
  454. (This)->lpVtbl -> FilterDataObject(This,pDO,ppDORet)
  455. #endif /* COBJMACROS */
  456. #endif /* C style interface */
  457. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_ShowContextMenu_Proxy(
  458. IDocHostUIHandler * This,
  459. /* [in] */ DWORD dwID,
  460. /* [in] */ POINT *ppt,
  461. /* [in] */ IUnknown *pcmdtReserved,
  462. /* [in] */ IDispatch *pdispReserved);
  463. void __RPC_STUB IDocHostUIHandler_ShowContextMenu_Stub(
  464. IRpcStubBuffer *This,
  465. IRpcChannelBuffer *_pRpcChannelBuffer,
  466. PRPC_MESSAGE _pRpcMessage,
  467. DWORD *_pdwStubPhase);
  468. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetHostInfo_Proxy(
  469. IDocHostUIHandler * This,
  470. /* [out][in] */ DOCHOSTUIINFO *pInfo);
  471. void __RPC_STUB IDocHostUIHandler_GetHostInfo_Stub(
  472. IRpcStubBuffer *This,
  473. IRpcChannelBuffer *_pRpcChannelBuffer,
  474. PRPC_MESSAGE _pRpcMessage,
  475. DWORD *_pdwStubPhase);
  476. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_ShowUI_Proxy(
  477. IDocHostUIHandler * This,
  478. /* [in] */ DWORD dwID,
  479. /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  480. /* [in] */ IOleCommandTarget *pCommandTarget,
  481. /* [in] */ IOleInPlaceFrame *pFrame,
  482. /* [in] */ IOleInPlaceUIWindow *pDoc);
  483. void __RPC_STUB IDocHostUIHandler_ShowUI_Stub(
  484. IRpcStubBuffer *This,
  485. IRpcChannelBuffer *_pRpcChannelBuffer,
  486. PRPC_MESSAGE _pRpcMessage,
  487. DWORD *_pdwStubPhase);
  488. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_HideUI_Proxy(
  489. IDocHostUIHandler * This);
  490. void __RPC_STUB IDocHostUIHandler_HideUI_Stub(
  491. IRpcStubBuffer *This,
  492. IRpcChannelBuffer *_pRpcChannelBuffer,
  493. PRPC_MESSAGE _pRpcMessage,
  494. DWORD *_pdwStubPhase);
  495. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_UpdateUI_Proxy(
  496. IDocHostUIHandler * This);
  497. void __RPC_STUB IDocHostUIHandler_UpdateUI_Stub(
  498. IRpcStubBuffer *This,
  499. IRpcChannelBuffer *_pRpcChannelBuffer,
  500. PRPC_MESSAGE _pRpcMessage,
  501. DWORD *_pdwStubPhase);
  502. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_EnableModeless_Proxy(
  503. IDocHostUIHandler * This,
  504. /* [in] */ BOOL fEnable);
  505. void __RPC_STUB IDocHostUIHandler_EnableModeless_Stub(
  506. IRpcStubBuffer *This,
  507. IRpcChannelBuffer *_pRpcChannelBuffer,
  508. PRPC_MESSAGE _pRpcMessage,
  509. DWORD *_pdwStubPhase);
  510. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_OnDocWindowActivate_Proxy(
  511. IDocHostUIHandler * This,
  512. /* [in] */ BOOL fActivate);
  513. void __RPC_STUB IDocHostUIHandler_OnDocWindowActivate_Stub(
  514. IRpcStubBuffer *This,
  515. IRpcChannelBuffer *_pRpcChannelBuffer,
  516. PRPC_MESSAGE _pRpcMessage,
  517. DWORD *_pdwStubPhase);
  518. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_OnFrameWindowActivate_Proxy(
  519. IDocHostUIHandler * This,
  520. /* [in] */ BOOL fActivate);
  521. void __RPC_STUB IDocHostUIHandler_OnFrameWindowActivate_Stub(
  522. IRpcStubBuffer *This,
  523. IRpcChannelBuffer *_pRpcChannelBuffer,
  524. PRPC_MESSAGE _pRpcMessage,
  525. DWORD *_pdwStubPhase);
  526. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_ResizeBorder_Proxy(
  527. IDocHostUIHandler * This,
  528. /* [in] */ LPCRECT prcBorder,
  529. /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  530. /* [in] */ BOOL fRameWindow);
  531. void __RPC_STUB IDocHostUIHandler_ResizeBorder_Stub(
  532. IRpcStubBuffer *This,
  533. IRpcChannelBuffer *_pRpcChannelBuffer,
  534. PRPC_MESSAGE _pRpcMessage,
  535. DWORD *_pdwStubPhase);
  536. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_TranslateAccelerator_Proxy(
  537. IDocHostUIHandler * This,
  538. /* [in] */ LPMSG lpMsg,
  539. /* [in] */ const GUID *pguidCmdGroup,
  540. /* [in] */ DWORD nCmdID);
  541. void __RPC_STUB IDocHostUIHandler_TranslateAccelerator_Stub(
  542. IRpcStubBuffer *This,
  543. IRpcChannelBuffer *_pRpcChannelBuffer,
  544. PRPC_MESSAGE _pRpcMessage,
  545. DWORD *_pdwStubPhase);
  546. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetOptionKeyPath_Proxy(
  547. IDocHostUIHandler * This,
  548. /* [out] */ LPOLESTR *pchKey,
  549. /* [in] */ DWORD dw);
  550. void __RPC_STUB IDocHostUIHandler_GetOptionKeyPath_Stub(
  551. IRpcStubBuffer *This,
  552. IRpcChannelBuffer *_pRpcChannelBuffer,
  553. PRPC_MESSAGE _pRpcMessage,
  554. DWORD *_pdwStubPhase);
  555. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetDropTarget_Proxy(
  556. IDocHostUIHandler * This,
  557. /* [in] */ IDropTarget *pDropTarget,
  558. /* [out] */ IDropTarget **ppDropTarget);
  559. void __RPC_STUB IDocHostUIHandler_GetDropTarget_Stub(
  560. IRpcStubBuffer *This,
  561. IRpcChannelBuffer *_pRpcChannelBuffer,
  562. PRPC_MESSAGE _pRpcMessage,
  563. DWORD *_pdwStubPhase);
  564. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_GetExternal_Proxy(
  565. IDocHostUIHandler * This,
  566. /* [out] */ IDispatch **ppDispatch);
  567. void __RPC_STUB IDocHostUIHandler_GetExternal_Stub(
  568. IRpcStubBuffer *This,
  569. IRpcChannelBuffer *_pRpcChannelBuffer,
  570. PRPC_MESSAGE _pRpcMessage,
  571. DWORD *_pdwStubPhase);
  572. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_TranslateUrl_Proxy(
  573. IDocHostUIHandler * This,
  574. /* [in] */ DWORD dwTranslate,
  575. /* [in] */ OLECHAR *pchURLIn,
  576. /* [out] */ OLECHAR **ppchURLOut);
  577. void __RPC_STUB IDocHostUIHandler_TranslateUrl_Stub(
  578. IRpcStubBuffer *This,
  579. IRpcChannelBuffer *_pRpcChannelBuffer,
  580. PRPC_MESSAGE _pRpcMessage,
  581. DWORD *_pdwStubPhase);
  582. HRESULT STDMETHODCALLTYPE IDocHostUIHandler_FilterDataObject_Proxy(
  583. IDocHostUIHandler * This,
  584. /* [in] */ IDataObject *pDO,
  585. /* [out] */ IDataObject **ppDORet);
  586. void __RPC_STUB IDocHostUIHandler_FilterDataObject_Stub(
  587. IRpcStubBuffer *This,
  588. IRpcChannelBuffer *_pRpcChannelBuffer,
  589. PRPC_MESSAGE _pRpcMessage,
  590. DWORD *_pdwStubPhase);
  591. #endif /* __IDocHostUIHandler_INTERFACE_DEFINED__ */
  592. #ifndef __IDocHostUIHandler2_INTERFACE_DEFINED__
  593. #define __IDocHostUIHandler2_INTERFACE_DEFINED__
  594. /* interface IDocHostUIHandler2 */
  595. /* [local][unique][uuid][object] */
  596. EXTERN_C const IID IID_IDocHostUIHandler2;
  597. #if defined(__cplusplus) && !defined(CINTERFACE)
  598. MIDL_INTERFACE("3050f6d0-98b5-11cf-bb82-00aa00bdce0b")
  599. IDocHostUIHandler2 : public IDocHostUIHandler
  600. {
  601. public:
  602. virtual HRESULT STDMETHODCALLTYPE GetOverrideKeyPath(
  603. /* [out] */ LPOLESTR *pchKey,
  604. /* [in] */ DWORD dw) = 0;
  605. };
  606. #else /* C style interface */
  607. typedef struct IDocHostUIHandler2Vtbl
  608. {
  609. BEGIN_INTERFACE
  610. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  611. IDocHostUIHandler2 * This,
  612. /* [in] */ REFIID riid,
  613. /* [iid_is][out] */ void **ppvObject);
  614. ULONG ( STDMETHODCALLTYPE *AddRef )(
  615. IDocHostUIHandler2 * This);
  616. ULONG ( STDMETHODCALLTYPE *Release )(
  617. IDocHostUIHandler2 * This);
  618. HRESULT ( STDMETHODCALLTYPE *ShowContextMenu )(
  619. IDocHostUIHandler2 * This,
  620. /* [in] */ DWORD dwID,
  621. /* [in] */ POINT *ppt,
  622. /* [in] */ IUnknown *pcmdtReserved,
  623. /* [in] */ IDispatch *pdispReserved);
  624. HRESULT ( STDMETHODCALLTYPE *GetHostInfo )(
  625. IDocHostUIHandler2 * This,
  626. /* [out][in] */ DOCHOSTUIINFO *pInfo);
  627. HRESULT ( STDMETHODCALLTYPE *ShowUI )(
  628. IDocHostUIHandler2 * This,
  629. /* [in] */ DWORD dwID,
  630. /* [in] */ IOleInPlaceActiveObject *pActiveObject,
  631. /* [in] */ IOleCommandTarget *pCommandTarget,
  632. /* [in] */ IOleInPlaceFrame *pFrame,
  633. /* [in] */ IOleInPlaceUIWindow *pDoc);
  634. HRESULT ( STDMETHODCALLTYPE *HideUI )(
  635. IDocHostUIHandler2 * This);
  636. HRESULT ( STDMETHODCALLTYPE *UpdateUI )(
  637. IDocHostUIHandler2 * This);
  638. HRESULT ( STDMETHODCALLTYPE *EnableModeless )(
  639. IDocHostUIHandler2 * This,
  640. /* [in] */ BOOL fEnable);
  641. HRESULT ( STDMETHODCALLTYPE *OnDocWindowActivate )(
  642. IDocHostUIHandler2 * This,
  643. /* [in] */ BOOL fActivate);
  644. HRESULT ( STDMETHODCALLTYPE *OnFrameWindowActivate )(
  645. IDocHostUIHandler2 * This,
  646. /* [in] */ BOOL fActivate);
  647. HRESULT ( STDMETHODCALLTYPE *ResizeBorder )(
  648. IDocHostUIHandler2 * This,
  649. /* [in] */ LPCRECT prcBorder,
  650. /* [in] */ IOleInPlaceUIWindow *pUIWindow,
  651. /* [in] */ BOOL fRameWindow);
  652. HRESULT ( STDMETHODCALLTYPE *TranslateAccelerator )(
  653. IDocHostUIHandler2 * This,
  654. /* [in] */ LPMSG lpMsg,
  655. /* [in] */ const GUID *pguidCmdGroup,
  656. /* [in] */ DWORD nCmdID);
  657. HRESULT ( STDMETHODCALLTYPE *GetOptionKeyPath )(
  658. IDocHostUIHandler2 * This,
  659. /* [out] */ LPOLESTR *pchKey,
  660. /* [in] */ DWORD dw);
  661. HRESULT ( STDMETHODCALLTYPE *GetDropTarget )(
  662. IDocHostUIHandler2 * This,
  663. /* [in] */ IDropTarget *pDropTarget,
  664. /* [out] */ IDropTarget **ppDropTarget);
  665. HRESULT ( STDMETHODCALLTYPE *GetExternal )(
  666. IDocHostUIHandler2 * This,
  667. /* [out] */ IDispatch **ppDispatch);
  668. HRESULT ( STDMETHODCALLTYPE *TranslateUrl )(
  669. IDocHostUIHandler2 * This,
  670. /* [in] */ DWORD dwTranslate,
  671. /* [in] */ OLECHAR *pchURLIn,
  672. /* [out] */ OLECHAR **ppchURLOut);
  673. HRESULT ( STDMETHODCALLTYPE *FilterDataObject )(
  674. IDocHostUIHandler2 * This,
  675. /* [in] */ IDataObject *pDO,
  676. /* [out] */ IDataObject **ppDORet);
  677. HRESULT ( STDMETHODCALLTYPE *GetOverrideKeyPath )(
  678. IDocHostUIHandler2 * This,
  679. /* [out] */ LPOLESTR *pchKey,
  680. /* [in] */ DWORD dw);
  681. END_INTERFACE
  682. } IDocHostUIHandler2Vtbl;
  683. interface IDocHostUIHandler2
  684. {
  685. CONST_VTBL struct IDocHostUIHandler2Vtbl *lpVtbl;
  686. };
  687. #ifdef COBJMACROS
  688. #define IDocHostUIHandler2_QueryInterface(This,riid,ppvObject) \
  689. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  690. #define IDocHostUIHandler2_AddRef(This) \
  691. (This)->lpVtbl -> AddRef(This)
  692. #define IDocHostUIHandler2_Release(This) \
  693. (This)->lpVtbl -> Release(This)
  694. #define IDocHostUIHandler2_ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved) \
  695. (This)->lpVtbl -> ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  696. #define IDocHostUIHandler2_GetHostInfo(This,pInfo) \
  697. (This)->lpVtbl -> GetHostInfo(This,pInfo)
  698. #define IDocHostUIHandler2_ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc) \
  699. (This)->lpVtbl -> ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  700. #define IDocHostUIHandler2_HideUI(This) \
  701. (This)->lpVtbl -> HideUI(This)
  702. #define IDocHostUIHandler2_UpdateUI(This) \
  703. (This)->lpVtbl -> UpdateUI(This)
  704. #define IDocHostUIHandler2_EnableModeless(This,fEnable) \
  705. (This)->lpVtbl -> EnableModeless(This,fEnable)
  706. #define IDocHostUIHandler2_OnDocWindowActivate(This,fActivate) \
  707. (This)->lpVtbl -> OnDocWindowActivate(This,fActivate)
  708. #define IDocHostUIHandler2_OnFrameWindowActivate(This,fActivate) \
  709. (This)->lpVtbl -> OnFrameWindowActivate(This,fActivate)
  710. #define IDocHostUIHandler2_ResizeBorder(This,prcBorder,pUIWindow,fRameWindow) \
  711. (This)->lpVtbl -> ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  712. #define IDocHostUIHandler2_TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID) \
  713. (This)->lpVtbl -> TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  714. #define IDocHostUIHandler2_GetOptionKeyPath(This,pchKey,dw) \
  715. (This)->lpVtbl -> GetOptionKeyPath(This,pchKey,dw)
  716. #define IDocHostUIHandler2_GetDropTarget(This,pDropTarget,ppDropTarget) \
  717. (This)->lpVtbl -> GetDropTarget(This,pDropTarget,ppDropTarget)
  718. #define IDocHostUIHandler2_GetExternal(This,ppDispatch) \
  719. (This)->lpVtbl -> GetExternal(This,ppDispatch)
  720. #define IDocHostUIHandler2_TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut) \
  721. (This)->lpVtbl -> TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  722. #define IDocHostUIHandler2_FilterDataObject(This,pDO,ppDORet) \
  723. (This)->lpVtbl -> FilterDataObject(This,pDO,ppDORet)
  724. #define IDocHostUIHandler2_GetOverrideKeyPath(This,pchKey,dw) \
  725. (This)->lpVtbl -> GetOverrideKeyPath(This,pchKey,dw)
  726. #endif /* COBJMACROS */
  727. #endif /* C style interface */
  728. HRESULT STDMETHODCALLTYPE IDocHostUIHandler2_GetOverrideKeyPath_Proxy(
  729. IDocHostUIHandler2 * This,
  730. /* [out] */ LPOLESTR *pchKey,
  731. /* [in] */ DWORD dw);
  732. void __RPC_STUB IDocHostUIHandler2_GetOverrideKeyPath_Stub(
  733. IRpcStubBuffer *This,
  734. IRpcChannelBuffer *_pRpcChannelBuffer,
  735. PRPC_MESSAGE _pRpcMessage,
  736. DWORD *_pdwStubPhase);
  737. #endif /* __IDocHostUIHandler2_INTERFACE_DEFINED__ */
  738. /* interface __MIDL_itf_mshtmhst_0275 */
  739. /* [local] */
  740. DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);
  741. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0275_v0_0_c_ifspec;
  742. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0275_v0_0_s_ifspec;
  743. #ifndef __ICustomDoc_INTERFACE_DEFINED__
  744. #define __ICustomDoc_INTERFACE_DEFINED__
  745. /* interface ICustomDoc */
  746. /* [local][unique][uuid][object] */
  747. EXTERN_C const IID IID_ICustomDoc;
  748. #if defined(__cplusplus) && !defined(CINTERFACE)
  749. MIDL_INTERFACE("3050f3f0-98b5-11cf-bb82-00aa00bdce0b")
  750. ICustomDoc : public IUnknown
  751. {
  752. public:
  753. virtual HRESULT STDMETHODCALLTYPE SetUIHandler(
  754. /* [in] */ IDocHostUIHandler *pUIHandler) = 0;
  755. };
  756. #else /* C style interface */
  757. typedef struct ICustomDocVtbl
  758. {
  759. BEGIN_INTERFACE
  760. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  761. ICustomDoc * This,
  762. /* [in] */ REFIID riid,
  763. /* [iid_is][out] */ void **ppvObject);
  764. ULONG ( STDMETHODCALLTYPE *AddRef )(
  765. ICustomDoc * This);
  766. ULONG ( STDMETHODCALLTYPE *Release )(
  767. ICustomDoc * This);
  768. HRESULT ( STDMETHODCALLTYPE *SetUIHandler )(
  769. ICustomDoc * This,
  770. /* [in] */ IDocHostUIHandler *pUIHandler);
  771. END_INTERFACE
  772. } ICustomDocVtbl;
  773. interface ICustomDoc
  774. {
  775. CONST_VTBL struct ICustomDocVtbl *lpVtbl;
  776. };
  777. #ifdef COBJMACROS
  778. #define ICustomDoc_QueryInterface(This,riid,ppvObject) \
  779. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  780. #define ICustomDoc_AddRef(This) \
  781. (This)->lpVtbl -> AddRef(This)
  782. #define ICustomDoc_Release(This) \
  783. (This)->lpVtbl -> Release(This)
  784. #define ICustomDoc_SetUIHandler(This,pUIHandler) \
  785. (This)->lpVtbl -> SetUIHandler(This,pUIHandler)
  786. #endif /* COBJMACROS */
  787. #endif /* C style interface */
  788. HRESULT STDMETHODCALLTYPE ICustomDoc_SetUIHandler_Proxy(
  789. ICustomDoc * This,
  790. /* [in] */ IDocHostUIHandler *pUIHandler);
  791. void __RPC_STUB ICustomDoc_SetUIHandler_Stub(
  792. IRpcStubBuffer *This,
  793. IRpcChannelBuffer *_pRpcChannelBuffer,
  794. PRPC_MESSAGE _pRpcMessage,
  795. DWORD *_pdwStubPhase);
  796. #endif /* __ICustomDoc_INTERFACE_DEFINED__ */
  797. #ifndef __IDocHostShowUI_INTERFACE_DEFINED__
  798. #define __IDocHostShowUI_INTERFACE_DEFINED__
  799. /* interface IDocHostShowUI */
  800. /* [local][unique][uuid][object] */
  801. EXTERN_C const IID IID_IDocHostShowUI;
  802. #if defined(__cplusplus) && !defined(CINTERFACE)
  803. MIDL_INTERFACE("c4d244b0-d43e-11cf-893b-00aa00bdce1a")
  804. IDocHostShowUI : public IUnknown
  805. {
  806. public:
  807. virtual HRESULT STDMETHODCALLTYPE ShowMessage(
  808. /* [in] */ HWND hwnd,
  809. /* [in] */ LPOLESTR lpstrText,
  810. /* [in] */ LPOLESTR lpstrCaption,
  811. /* [in] */ DWORD dwType,
  812. /* [in] */ LPOLESTR lpstrHelpFile,
  813. /* [in] */ DWORD dwHelpContext,
  814. /* [out] */ LRESULT *plResult) = 0;
  815. virtual HRESULT STDMETHODCALLTYPE ShowHelp(
  816. /* [in] */ HWND hwnd,
  817. /* [in] */ LPOLESTR pszHelpFile,
  818. /* [in] */ UINT uCommand,
  819. /* [in] */ DWORD dwData,
  820. /* [in] */ POINT ptMouse,
  821. /* [out] */ IDispatch *pDispatchObjectHit) = 0;
  822. };
  823. #else /* C style interface */
  824. typedef struct IDocHostShowUIVtbl
  825. {
  826. BEGIN_INTERFACE
  827. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  828. IDocHostShowUI * This,
  829. /* [in] */ REFIID riid,
  830. /* [iid_is][out] */ void **ppvObject);
  831. ULONG ( STDMETHODCALLTYPE *AddRef )(
  832. IDocHostShowUI * This);
  833. ULONG ( STDMETHODCALLTYPE *Release )(
  834. IDocHostShowUI * This);
  835. HRESULT ( STDMETHODCALLTYPE *ShowMessage )(
  836. IDocHostShowUI * This,
  837. /* [in] */ HWND hwnd,
  838. /* [in] */ LPOLESTR lpstrText,
  839. /* [in] */ LPOLESTR lpstrCaption,
  840. /* [in] */ DWORD dwType,
  841. /* [in] */ LPOLESTR lpstrHelpFile,
  842. /* [in] */ DWORD dwHelpContext,
  843. /* [out] */ LRESULT *plResult);
  844. HRESULT ( STDMETHODCALLTYPE *ShowHelp )(
  845. IDocHostShowUI * This,
  846. /* [in] */ HWND hwnd,
  847. /* [in] */ LPOLESTR pszHelpFile,
  848. /* [in] */ UINT uCommand,
  849. /* [in] */ DWORD dwData,
  850. /* [in] */ POINT ptMouse,
  851. /* [out] */ IDispatch *pDispatchObjectHit);
  852. END_INTERFACE
  853. } IDocHostShowUIVtbl;
  854. interface IDocHostShowUI
  855. {
  856. CONST_VTBL struct IDocHostShowUIVtbl *lpVtbl;
  857. };
  858. #ifdef COBJMACROS
  859. #define IDocHostShowUI_QueryInterface(This,riid,ppvObject) \
  860. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  861. #define IDocHostShowUI_AddRef(This) \
  862. (This)->lpVtbl -> AddRef(This)
  863. #define IDocHostShowUI_Release(This) \
  864. (This)->lpVtbl -> Release(This)
  865. #define IDocHostShowUI_ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult) \
  866. (This)->lpVtbl -> ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult)
  867. #define IDocHostShowUI_ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit) \
  868. (This)->lpVtbl -> ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit)
  869. #endif /* COBJMACROS */
  870. #endif /* C style interface */
  871. HRESULT STDMETHODCALLTYPE IDocHostShowUI_ShowMessage_Proxy(
  872. IDocHostShowUI * This,
  873. /* [in] */ HWND hwnd,
  874. /* [in] */ LPOLESTR lpstrText,
  875. /* [in] */ LPOLESTR lpstrCaption,
  876. /* [in] */ DWORD dwType,
  877. /* [in] */ LPOLESTR lpstrHelpFile,
  878. /* [in] */ DWORD dwHelpContext,
  879. /* [out] */ LRESULT *plResult);
  880. void __RPC_STUB IDocHostShowUI_ShowMessage_Stub(
  881. IRpcStubBuffer *This,
  882. IRpcChannelBuffer *_pRpcChannelBuffer,
  883. PRPC_MESSAGE _pRpcMessage,
  884. DWORD *_pdwStubPhase);
  885. HRESULT STDMETHODCALLTYPE IDocHostShowUI_ShowHelp_Proxy(
  886. IDocHostShowUI * This,
  887. /* [in] */ HWND hwnd,
  888. /* [in] */ LPOLESTR pszHelpFile,
  889. /* [in] */ UINT uCommand,
  890. /* [in] */ DWORD dwData,
  891. /* [in] */ POINT ptMouse,
  892. /* [out] */ IDispatch *pDispatchObjectHit);
  893. void __RPC_STUB IDocHostShowUI_ShowHelp_Stub(
  894. IRpcStubBuffer *This,
  895. IRpcChannelBuffer *_pRpcChannelBuffer,
  896. PRPC_MESSAGE _pRpcMessage,
  897. DWORD *_pdwStubPhase);
  898. #endif /* __IDocHostShowUI_INTERFACE_DEFINED__ */
  899. /* interface __MIDL_itf_mshtmhst_0277 */
  900. /* [local] */
  901. #define IClassFactory3 IClassFactoryEx
  902. #define IID_IClassFactory3 IID_IClassFactoryEx
  903. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0277_v0_0_c_ifspec;
  904. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0277_v0_0_s_ifspec;
  905. #ifndef __IClassFactoryEx_INTERFACE_DEFINED__
  906. #define __IClassFactoryEx_INTERFACE_DEFINED__
  907. /* interface IClassFactoryEx */
  908. /* [local][unique][uuid][object] */
  909. EXTERN_C const IID IID_IClassFactoryEx;
  910. #if defined(__cplusplus) && !defined(CINTERFACE)
  911. MIDL_INTERFACE("342D1EA0-AE25-11D1-89C5-006008C3FBFC")
  912. IClassFactoryEx : public IClassFactory
  913. {
  914. public:
  915. virtual HRESULT STDMETHODCALLTYPE CreateInstanceWithContext(
  916. IUnknown *punkContext,
  917. IUnknown *punkOuter,
  918. REFIID riid,
  919. /* [out] */ void **ppv) = 0;
  920. };
  921. #else /* C style interface */
  922. typedef struct IClassFactoryExVtbl
  923. {
  924. BEGIN_INTERFACE
  925. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  926. IClassFactoryEx * This,
  927. /* [in] */ REFIID riid,
  928. /* [iid_is][out] */ void **ppvObject);
  929. ULONG ( STDMETHODCALLTYPE *AddRef )(
  930. IClassFactoryEx * This);
  931. ULONG ( STDMETHODCALLTYPE *Release )(
  932. IClassFactoryEx * This);
  933. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  934. IClassFactoryEx * This,
  935. /* [unique][in] */ IUnknown *pUnkOuter,
  936. /* [in] */ REFIID riid,
  937. /* [iid_is][out] */ void **ppvObject);
  938. /* [local] */ HRESULT ( STDMETHODCALLTYPE *LockServer )(
  939. IClassFactoryEx * This,
  940. /* [in] */ BOOL fLock);
  941. HRESULT ( STDMETHODCALLTYPE *CreateInstanceWithContext )(
  942. IClassFactoryEx * This,
  943. IUnknown *punkContext,
  944. IUnknown *punkOuter,
  945. REFIID riid,
  946. /* [out] */ void **ppv);
  947. END_INTERFACE
  948. } IClassFactoryExVtbl;
  949. interface IClassFactoryEx
  950. {
  951. CONST_VTBL struct IClassFactoryExVtbl *lpVtbl;
  952. };
  953. #ifdef COBJMACROS
  954. #define IClassFactoryEx_QueryInterface(This,riid,ppvObject) \
  955. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  956. #define IClassFactoryEx_AddRef(This) \
  957. (This)->lpVtbl -> AddRef(This)
  958. #define IClassFactoryEx_Release(This) \
  959. (This)->lpVtbl -> Release(This)
  960. #define IClassFactoryEx_CreateInstance(This,pUnkOuter,riid,ppvObject) \
  961. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,riid,ppvObject)
  962. #define IClassFactoryEx_LockServer(This,fLock) \
  963. (This)->lpVtbl -> LockServer(This,fLock)
  964. #define IClassFactoryEx_CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv) \
  965. (This)->lpVtbl -> CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv)
  966. #endif /* COBJMACROS */
  967. #endif /* C style interface */
  968. HRESULT STDMETHODCALLTYPE IClassFactoryEx_CreateInstanceWithContext_Proxy(
  969. IClassFactoryEx * This,
  970. IUnknown *punkContext,
  971. IUnknown *punkOuter,
  972. REFIID riid,
  973. /* [out] */ void **ppv);
  974. void __RPC_STUB IClassFactoryEx_CreateInstanceWithContext_Stub(
  975. IRpcStubBuffer *This,
  976. IRpcChannelBuffer *_pRpcChannelBuffer,
  977. PRPC_MESSAGE _pRpcMessage,
  978. DWORD *_pdwStubPhase);
  979. #endif /* __IClassFactoryEx_INTERFACE_DEFINED__ */
  980. /* interface __MIDL_itf_mshtmhst_0278 */
  981. /* [local] */
  982. #endif
  983. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0278_v0_0_c_ifspec;
  984. extern RPC_IF_HANDLE __MIDL_itf_mshtmhst_0278_v0_0_s_ifspec;
  985. /* Additional Prototypes for ALL interfaces */
  986. /* end of Additional Prototypes */
  987. #ifdef __cplusplus
  988. }
  989. #endif
  990. #endif