mshtmhst.h 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220
  1. /*** Autogenerated by WIDL 7.7 from include/mshtmhst.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __mshtmhst_h__
  14. #define __mshtmhst_h__
  15. /* Forward declarations */
  16. #ifndef __IHostDialogHelper_FWD_DEFINED__
  17. #define __IHostDialogHelper_FWD_DEFINED__
  18. typedef interface IHostDialogHelper IHostDialogHelper;
  19. #ifdef __cplusplus
  20. interface IHostDialogHelper;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __HostDialogHelper_FWD_DEFINED__
  24. #define __HostDialogHelper_FWD_DEFINED__
  25. #ifdef __cplusplus
  26. typedef class HostDialogHelper HostDialogHelper;
  27. #else
  28. typedef struct HostDialogHelper HostDialogHelper;
  29. #endif /* defined __cplusplus */
  30. #endif /* defined __HostDialogHelper_FWD_DEFINED__ */
  31. #ifndef __IDocHostUIHandler_FWD_DEFINED__
  32. #define __IDocHostUIHandler_FWD_DEFINED__
  33. typedef interface IDocHostUIHandler IDocHostUIHandler;
  34. #ifdef __cplusplus
  35. interface IDocHostUIHandler;
  36. #endif /* __cplusplus */
  37. #endif
  38. #ifndef __IDocHostUIHandler2_FWD_DEFINED__
  39. #define __IDocHostUIHandler2_FWD_DEFINED__
  40. typedef interface IDocHostUIHandler2 IDocHostUIHandler2;
  41. #ifdef __cplusplus
  42. interface IDocHostUIHandler2;
  43. #endif /* __cplusplus */
  44. #endif
  45. #ifndef __ICustomDoc_FWD_DEFINED__
  46. #define __ICustomDoc_FWD_DEFINED__
  47. typedef interface ICustomDoc ICustomDoc;
  48. #ifdef __cplusplus
  49. interface ICustomDoc;
  50. #endif /* __cplusplus */
  51. #endif
  52. #ifndef __IDocHostShowUI_FWD_DEFINED__
  53. #define __IDocHostShowUI_FWD_DEFINED__
  54. typedef interface IDocHostShowUI IDocHostShowUI;
  55. #ifdef __cplusplus
  56. interface IDocHostShowUI;
  57. #endif /* __cplusplus */
  58. #endif
  59. #ifndef __IClassFactoryEx_FWD_DEFINED__
  60. #define __IClassFactoryEx_FWD_DEFINED__
  61. typedef interface IClassFactoryEx IClassFactoryEx;
  62. #ifdef __cplusplus
  63. interface IClassFactoryEx;
  64. #endif /* __cplusplus */
  65. #endif
  66. #ifndef __IHTMLOMWindowServices_FWD_DEFINED__
  67. #define __IHTMLOMWindowServices_FWD_DEFINED__
  68. typedef interface IHTMLOMWindowServices IHTMLOMWindowServices;
  69. #ifdef __cplusplus
  70. interface IHTMLOMWindowServices;
  71. #endif /* __cplusplus */
  72. #endif
  73. /* Headers for imported files */
  74. #include <ocidl.h>
  75. #include <objidl.h>
  76. #include <oleidl.h>
  77. #include <oaidl.h>
  78. #include <docobj.h>
  79. #ifdef __cplusplus
  80. extern "C" {
  81. #endif
  82. /**
  83. * This file is part of the mingw-w64 runtime package.
  84. * No warranty is given; refer to the file DISCLAIMER within this package.
  85. */
  86. #include <winapifamily.h>
  87. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  88. #ifndef MSHTMHST_H
  89. #define MSHTMHST_H
  90. #define CONTEXT_MENU_DEFAULT 0
  91. #define CONTEXT_MENU_IMAGE 1
  92. #define CONTEXT_MENU_CONTROL 2
  93. #define CONTEXT_MENU_TABLE 3
  94. #define CONTEXT_MENU_TEXTSELECT 4
  95. #define CONTEXT_MENU_ANCHOR 5
  96. #define CONTEXT_MENU_UNKNOWN 6
  97. #define CONTEXT_MENU_IMGDYNSRC 7
  98. #define CONTEXT_MENU_DEBUG 8
  99. #define CONTEXT_MENU_VSCROLL 9
  100. #define CONTEXT_MENU_HSCROLL 10
  101. #define CONTEXT_MENU_MEDIA 11
  102. #define MENUEXT_SHOWDIALOG 0x1
  103. #define CMDID_SCRIPTSITE_URL 0
  104. #define CMDID_SCRIPTSITE_HTMLDLGTRUST 1
  105. #define CMDID_SCRIPTSITE_SECSTATE 2
  106. #define CMDID_SCRIPTSITE_SID 3
  107. #define CMDID_SCRIPTSITE_TRUSTEDDOC 4
  108. #define CMDID_SCRIPTSITE_SECURITY_WINDOW 5
  109. #define CMDID_SCRIPTSITE_NAMESPACE 6
  110. #define CMDID_SCRIPTSITE_IURI 7
  111. #define CMDID_HOSTCONTEXT_URL 8
  112. #define CMDID_SCRIPTSITE_ALLOWRECOVERY 9
  113. #define HTMLDLG_NOUI 0x10
  114. #define HTMLDLG_MODAL 0x20
  115. #define HTMLDLG_MODELESS 0x40
  116. #define HTMLDLG_PRINT_TEMPLATE 0x80
  117. #define HTMLDLG_VERIFY 0x100
  118. #define HTMLDLG_ALLOW_UNKNOWN_THREAD 0x200
  119. #define PRINT_DONTBOTHERUSER 0x1
  120. #define PRINT_WAITFORCOMPLETION 0x2
  121. #define CMDSETID_Forms3 CGID_MSHTML
  122. #define SZ_HTML_CLIENTSITE_OBJECTPARAM L"{d4db6850-5385-11d0-89e9-00a0c90a90ac}"
  123. EXTERN_C const GUID CGID_ScriptSite;
  124. EXTERN_C const GUID CGID_MSHTML;
  125. EXTERN_C const GUID CLSID_HostDialogHelper;
  126. DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);
  127. #ifndef __IHTMLWindow2_FWD_DEFINED__
  128. #define __IHTMLWindow2_FWD_DEFINED__
  129. typedef interface IHTMLWindow2 IHTMLWindow2;
  130. #endif
  131. typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, WCHAR *pchOptions, VARIANT *pvArgOut);
  132. typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGEXFN (HWND hwndParent, IMoniker *pmk, DWORD dwDialogFlags, VARIANT *pvarArgIn, WCHAR *pchOptions, VARIANT *pvArgOut);
  133. typedef HRESULT STDAPICALLTYPE SHOWMODELESSHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, VARIANT *pvarOptions, IHTMLWindow2 **ppWindow);
  134. typedef HRESULT STDAPICALLTYPE IEREGISTERXMLNSFN (LPCWSTR lpszURI, GUID clsid, BOOL fMachine);
  135. typedef HRESULT STDAPICALLTYPE IEISXMLNSREGISTEREDFN (LPCWSTR lpszURI, GUID *pCLSID);
  136. STDAPI ShowHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, LPWSTR pchOptions, VARIANT *pvarArgOut);
  137. STDAPI ShowHTMLDialogEx (HWND hwndParent, IMoniker *pMk, DWORD dwDialogFlags, VARIANT *pvarArgIn, LPWSTR pchOptions, VARIANT *pvarArgOut);
  138. STDAPI ShowModelessHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, VARIANT *pvarOptions, IHTMLWindow2 **ppWindow);
  139. #if !defined (_ARM_) && !defined (__arm__)
  140. STDAPI RunHTMLApplication (HINSTANCE hinst, HINSTANCE hPrevInst, LPSTR szCmdLine, int nCmdShow);
  141. #endif
  142. STDAPI CreateHTMLPropertyPage (IMoniker *pmk, IPropertyPage **ppPP);
  143. STDAPI EarlyStartDisplaySystem (void);
  144. STDAPI IERegisterXMLNS (LPCWSTR lpszURI, GUID clsid, BOOL fMachine);
  145. STDAPI IEIsXMLNSRegistered (LPCWSTR lpszURI, GUID *pCLSID);
  146. STDAPI GetColorValueFromString (LPCWSTR lpszColor, BOOL fStrictCSS1, BOOL fIsStandardsCSS, COLORREF *pColor);
  147. typedef enum tagDOCHOSTUIDBLCLK {
  148. DOCHOSTUIDBLCLK_DEFAULT = 0,
  149. DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
  150. DOCHOSTUIDBLCLK_SHOWCODE = 2
  151. } DOCHOSTUIDBLCLK;
  152. typedef enum tagDOCHOSTUIFLAG {
  153. DOCHOSTUIFLAG_DIALOG = 0x1,
  154. DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x2,
  155. DOCHOSTUIFLAG_NO3DBORDER = 0x4,
  156. DOCHOSTUIFLAG_SCROLL_NO = 0x8,
  157. DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x10,
  158. DOCHOSTUIFLAG_OPENNEWWIN = 0x20,
  159. DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x40,
  160. DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x80,
  161. DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x100,
  162. DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x200,
  163. DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x400,
  164. DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x800,
  165. DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x1000,
  166. DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x2000,
  167. DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x4000,
  168. DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x10000,
  169. DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x20000,
  170. DOCHOSTUIFLAG_THEME = 0x40000,
  171. DOCHOSTUIFLAG_NOTHEME = 0x80000,
  172. DOCHOSTUIFLAG_NOPICS = 0x100000,
  173. DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x200000,
  174. DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x400000,
  175. DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK = 0x800000,
  176. DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x1000000,
  177. DOCHOSTUIFLAG_HOST_NAVIGATES = 0x2000000,
  178. DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION = 0x4000000,
  179. DOCHOSTUIFLAG_USE_WINDOWLESS_SELECTCONTROL = 0x8000000,
  180. DOCHOSTUIFLAG_USE_WINDOWED_SELECTCONTROL = 0x10000000,
  181. DOCHOSTUIFLAG_ENABLE_ACTIVEX_INACTIVATE_MODE = 0x20000000,
  182. DOCHOSTUIFLAG_DPI_AWARE = 0x40000000
  183. } DOCHOSTUIFLAG;
  184. #define DOCHOSTUIFLAG_BROWSER (DOCHOSTUIFLAG_DISABLE_HELP_MENU | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE)
  185. typedef enum tagDOCHOSTUITYPE {
  186. DOCHOSTUITYPE_BROWSE = 0,
  187. DOCHOSTUITYPE_AUTHOR = 1
  188. } DOCHOSTUITYPE;
  189. typedef struct _DOCHOSTUIINFO {
  190. ULONG cbSize;
  191. DWORD dwFlags;
  192. DWORD dwDoubleClick;
  193. OLECHAR *pchHostCss;
  194. OLECHAR *pchHostNS;
  195. } DOCHOSTUIINFO;
  196. /*****************************************************************************
  197. * IHostDialogHelper interface
  198. */
  199. #ifndef __IHostDialogHelper_INTERFACE_DEFINED__
  200. #define __IHostDialogHelper_INTERFACE_DEFINED__
  201. DEFINE_GUID(IID_IHostDialogHelper, 0x53dec138, 0xa51e, 0x11d2, 0x86,0x1e, 0x00,0xc0,0x4f,0xa3,0x5c,0x89);
  202. #if defined(__cplusplus) && !defined(CINTERFACE)
  203. MIDL_INTERFACE("53dec138-a51e-11d2-861e-00c04fa35c89")
  204. IHostDialogHelper : public IUnknown
  205. {
  206. virtual HRESULT STDMETHODCALLTYPE ShowHTMLDialog(
  207. HWND hwndParent,
  208. IMoniker *pMk,
  209. VARIANT *pvarArgIn,
  210. WCHAR *pchOptions,
  211. VARIANT *pvarArgOut,
  212. IUnknown *punkHost) = 0;
  213. };
  214. #ifdef __CRT_UUID_DECL
  215. __CRT_UUID_DECL(IHostDialogHelper, 0x53dec138, 0xa51e, 0x11d2, 0x86,0x1e, 0x00,0xc0,0x4f,0xa3,0x5c,0x89)
  216. #endif
  217. #else
  218. typedef struct IHostDialogHelperVtbl {
  219. BEGIN_INTERFACE
  220. /*** IUnknown methods ***/
  221. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  222. IHostDialogHelper *This,
  223. REFIID riid,
  224. void **ppvObject);
  225. ULONG (STDMETHODCALLTYPE *AddRef)(
  226. IHostDialogHelper *This);
  227. ULONG (STDMETHODCALLTYPE *Release)(
  228. IHostDialogHelper *This);
  229. /*** IHostDialogHelper methods ***/
  230. HRESULT (STDMETHODCALLTYPE *ShowHTMLDialog)(
  231. IHostDialogHelper *This,
  232. HWND hwndParent,
  233. IMoniker *pMk,
  234. VARIANT *pvarArgIn,
  235. WCHAR *pchOptions,
  236. VARIANT *pvarArgOut,
  237. IUnknown *punkHost);
  238. END_INTERFACE
  239. } IHostDialogHelperVtbl;
  240. interface IHostDialogHelper {
  241. CONST_VTBL IHostDialogHelperVtbl* lpVtbl;
  242. };
  243. #ifdef COBJMACROS
  244. #ifndef WIDL_C_INLINE_WRAPPERS
  245. /*** IUnknown methods ***/
  246. #define IHostDialogHelper_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  247. #define IHostDialogHelper_AddRef(This) (This)->lpVtbl->AddRef(This)
  248. #define IHostDialogHelper_Release(This) (This)->lpVtbl->Release(This)
  249. /*** IHostDialogHelper methods ***/
  250. #define IHostDialogHelper_ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost) (This)->lpVtbl->ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost)
  251. #else
  252. /*** IUnknown methods ***/
  253. static FORCEINLINE HRESULT IHostDialogHelper_QueryInterface(IHostDialogHelper* This,REFIID riid,void **ppvObject) {
  254. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  255. }
  256. static FORCEINLINE ULONG IHostDialogHelper_AddRef(IHostDialogHelper* This) {
  257. return This->lpVtbl->AddRef(This);
  258. }
  259. static FORCEINLINE ULONG IHostDialogHelper_Release(IHostDialogHelper* This) {
  260. return This->lpVtbl->Release(This);
  261. }
  262. /*** IHostDialogHelper methods ***/
  263. static FORCEINLINE HRESULT IHostDialogHelper_ShowHTMLDialog(IHostDialogHelper* This,HWND hwndParent,IMoniker *pMk,VARIANT *pvarArgIn,WCHAR *pchOptions,VARIANT *pvarArgOut,IUnknown *punkHost) {
  264. return This->lpVtbl->ShowHTMLDialog(This,hwndParent,pMk,pvarArgIn,pchOptions,pvarArgOut,punkHost);
  265. }
  266. #endif
  267. #endif
  268. #endif
  269. #endif /* __IHostDialogHelper_INTERFACE_DEFINED__ */
  270. /*****************************************************************************
  271. * HostDialogHelper coclass
  272. */
  273. DEFINE_GUID(CLSID_HostDialogHelper, 0x429af92c, 0xa51f, 0x11d2, 0x86,0x1e, 0x00,0xc0,0x4f,0xa3,0x5c,0x89);
  274. #ifdef __cplusplus
  275. class DECLSPEC_UUID("429af92c-a51f-11d2-861e-00c04fa35c89") HostDialogHelper;
  276. #ifdef __CRT_UUID_DECL
  277. __CRT_UUID_DECL(HostDialogHelper, 0x429af92c, 0xa51f, 0x11d2, 0x86,0x1e, 0x00,0xc0,0x4f,0xa3,0x5c,0x89)
  278. #endif
  279. #endif
  280. /*****************************************************************************
  281. * IDocHostUIHandler interface
  282. */
  283. #ifndef __IDocHostUIHandler_INTERFACE_DEFINED__
  284. #define __IDocHostUIHandler_INTERFACE_DEFINED__
  285. DEFINE_GUID(IID_IDocHostUIHandler, 0xbd3f23c0, 0xd43e, 0x11cf, 0x89,0x3b, 0x00,0xaa,0x00,0xbd,0xce,0x1a);
  286. #if defined(__cplusplus) && !defined(CINTERFACE)
  287. MIDL_INTERFACE("bd3f23c0-d43e-11cf-893b-00aa00bdce1a")
  288. IDocHostUIHandler : public IUnknown
  289. {
  290. virtual HRESULT STDMETHODCALLTYPE ShowContextMenu(
  291. DWORD dwID,
  292. POINT *ppt,
  293. IUnknown *pcmdtReserved,
  294. IDispatch *pdispReserved) = 0;
  295. virtual HRESULT STDMETHODCALLTYPE GetHostInfo(
  296. DOCHOSTUIINFO *pInfo) = 0;
  297. virtual HRESULT STDMETHODCALLTYPE ShowUI(
  298. DWORD dwID,
  299. IOleInPlaceActiveObject *pActiveObject,
  300. IOleCommandTarget *pCommandTarget,
  301. IOleInPlaceFrame *pFrame,
  302. IOleInPlaceUIWindow *pDoc) = 0;
  303. virtual HRESULT STDMETHODCALLTYPE HideUI(
  304. ) = 0;
  305. virtual HRESULT STDMETHODCALLTYPE UpdateUI(
  306. ) = 0;
  307. virtual HRESULT STDMETHODCALLTYPE EnableModeless(
  308. WINBOOL fEnable) = 0;
  309. virtual HRESULT STDMETHODCALLTYPE OnDocWindowActivate(
  310. WINBOOL fActivate) = 0;
  311. virtual HRESULT STDMETHODCALLTYPE OnFrameWindowActivate(
  312. WINBOOL fActivate) = 0;
  313. virtual HRESULT STDMETHODCALLTYPE ResizeBorder(
  314. LPCRECT prcBorder,
  315. IOleInPlaceUIWindow *pUIWindow,
  316. WINBOOL fRameWindow) = 0;
  317. virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator(
  318. LPMSG lpMsg,
  319. const GUID *pguidCmdGroup,
  320. DWORD nCmdID) = 0;
  321. virtual HRESULT STDMETHODCALLTYPE GetOptionKeyPath(
  322. LPOLESTR *pchKey,
  323. DWORD dw) = 0;
  324. virtual HRESULT STDMETHODCALLTYPE GetDropTarget(
  325. IDropTarget *pDropTarget,
  326. IDropTarget **ppDropTarget) = 0;
  327. virtual HRESULT STDMETHODCALLTYPE GetExternal(
  328. IDispatch **ppDispatch) = 0;
  329. virtual HRESULT STDMETHODCALLTYPE TranslateUrl(
  330. DWORD dwTranslate,
  331. LPWSTR pchURLIn,
  332. LPWSTR *ppchURLOut) = 0;
  333. virtual HRESULT STDMETHODCALLTYPE FilterDataObject(
  334. IDataObject *pDO,
  335. IDataObject **ppDORet) = 0;
  336. };
  337. #ifdef __CRT_UUID_DECL
  338. __CRT_UUID_DECL(IDocHostUIHandler, 0xbd3f23c0, 0xd43e, 0x11cf, 0x89,0x3b, 0x00,0xaa,0x00,0xbd,0xce,0x1a)
  339. #endif
  340. #else
  341. typedef struct IDocHostUIHandlerVtbl {
  342. BEGIN_INTERFACE
  343. /*** IUnknown methods ***/
  344. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  345. IDocHostUIHandler *This,
  346. REFIID riid,
  347. void **ppvObject);
  348. ULONG (STDMETHODCALLTYPE *AddRef)(
  349. IDocHostUIHandler *This);
  350. ULONG (STDMETHODCALLTYPE *Release)(
  351. IDocHostUIHandler *This);
  352. /*** IDocHostUIHandler methods ***/
  353. HRESULT (STDMETHODCALLTYPE *ShowContextMenu)(
  354. IDocHostUIHandler *This,
  355. DWORD dwID,
  356. POINT *ppt,
  357. IUnknown *pcmdtReserved,
  358. IDispatch *pdispReserved);
  359. HRESULT (STDMETHODCALLTYPE *GetHostInfo)(
  360. IDocHostUIHandler *This,
  361. DOCHOSTUIINFO *pInfo);
  362. HRESULT (STDMETHODCALLTYPE *ShowUI)(
  363. IDocHostUIHandler *This,
  364. DWORD dwID,
  365. IOleInPlaceActiveObject *pActiveObject,
  366. IOleCommandTarget *pCommandTarget,
  367. IOleInPlaceFrame *pFrame,
  368. IOleInPlaceUIWindow *pDoc);
  369. HRESULT (STDMETHODCALLTYPE *HideUI)(
  370. IDocHostUIHandler *This);
  371. HRESULT (STDMETHODCALLTYPE *UpdateUI)(
  372. IDocHostUIHandler *This);
  373. HRESULT (STDMETHODCALLTYPE *EnableModeless)(
  374. IDocHostUIHandler *This,
  375. WINBOOL fEnable);
  376. HRESULT (STDMETHODCALLTYPE *OnDocWindowActivate)(
  377. IDocHostUIHandler *This,
  378. WINBOOL fActivate);
  379. HRESULT (STDMETHODCALLTYPE *OnFrameWindowActivate)(
  380. IDocHostUIHandler *This,
  381. WINBOOL fActivate);
  382. HRESULT (STDMETHODCALLTYPE *ResizeBorder)(
  383. IDocHostUIHandler *This,
  384. LPCRECT prcBorder,
  385. IOleInPlaceUIWindow *pUIWindow,
  386. WINBOOL fRameWindow);
  387. HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)(
  388. IDocHostUIHandler *This,
  389. LPMSG lpMsg,
  390. const GUID *pguidCmdGroup,
  391. DWORD nCmdID);
  392. HRESULT (STDMETHODCALLTYPE *GetOptionKeyPath)(
  393. IDocHostUIHandler *This,
  394. LPOLESTR *pchKey,
  395. DWORD dw);
  396. HRESULT (STDMETHODCALLTYPE *GetDropTarget)(
  397. IDocHostUIHandler *This,
  398. IDropTarget *pDropTarget,
  399. IDropTarget **ppDropTarget);
  400. HRESULT (STDMETHODCALLTYPE *GetExternal)(
  401. IDocHostUIHandler *This,
  402. IDispatch **ppDispatch);
  403. HRESULT (STDMETHODCALLTYPE *TranslateUrl)(
  404. IDocHostUIHandler *This,
  405. DWORD dwTranslate,
  406. LPWSTR pchURLIn,
  407. LPWSTR *ppchURLOut);
  408. HRESULT (STDMETHODCALLTYPE *FilterDataObject)(
  409. IDocHostUIHandler *This,
  410. IDataObject *pDO,
  411. IDataObject **ppDORet);
  412. END_INTERFACE
  413. } IDocHostUIHandlerVtbl;
  414. interface IDocHostUIHandler {
  415. CONST_VTBL IDocHostUIHandlerVtbl* lpVtbl;
  416. };
  417. #ifdef COBJMACROS
  418. #ifndef WIDL_C_INLINE_WRAPPERS
  419. /*** IUnknown methods ***/
  420. #define IDocHostUIHandler_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  421. #define IDocHostUIHandler_AddRef(This) (This)->lpVtbl->AddRef(This)
  422. #define IDocHostUIHandler_Release(This) (This)->lpVtbl->Release(This)
  423. /*** IDocHostUIHandler methods ***/
  424. #define IDocHostUIHandler_ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved) (This)->lpVtbl->ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  425. #define IDocHostUIHandler_GetHostInfo(This,pInfo) (This)->lpVtbl->GetHostInfo(This,pInfo)
  426. #define IDocHostUIHandler_ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc) (This)->lpVtbl->ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  427. #define IDocHostUIHandler_HideUI(This) (This)->lpVtbl->HideUI(This)
  428. #define IDocHostUIHandler_UpdateUI(This) (This)->lpVtbl->UpdateUI(This)
  429. #define IDocHostUIHandler_EnableModeless(This,fEnable) (This)->lpVtbl->EnableModeless(This,fEnable)
  430. #define IDocHostUIHandler_OnDocWindowActivate(This,fActivate) (This)->lpVtbl->OnDocWindowActivate(This,fActivate)
  431. #define IDocHostUIHandler_OnFrameWindowActivate(This,fActivate) (This)->lpVtbl->OnFrameWindowActivate(This,fActivate)
  432. #define IDocHostUIHandler_ResizeBorder(This,prcBorder,pUIWindow,fRameWindow) (This)->lpVtbl->ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  433. #define IDocHostUIHandler_TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID) (This)->lpVtbl->TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  434. #define IDocHostUIHandler_GetOptionKeyPath(This,pchKey,dw) (This)->lpVtbl->GetOptionKeyPath(This,pchKey,dw)
  435. #define IDocHostUIHandler_GetDropTarget(This,pDropTarget,ppDropTarget) (This)->lpVtbl->GetDropTarget(This,pDropTarget,ppDropTarget)
  436. #define IDocHostUIHandler_GetExternal(This,ppDispatch) (This)->lpVtbl->GetExternal(This,ppDispatch)
  437. #define IDocHostUIHandler_TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut) (This)->lpVtbl->TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  438. #define IDocHostUIHandler_FilterDataObject(This,pDO,ppDORet) (This)->lpVtbl->FilterDataObject(This,pDO,ppDORet)
  439. #else
  440. /*** IUnknown methods ***/
  441. static FORCEINLINE HRESULT IDocHostUIHandler_QueryInterface(IDocHostUIHandler* This,REFIID riid,void **ppvObject) {
  442. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  443. }
  444. static FORCEINLINE ULONG IDocHostUIHandler_AddRef(IDocHostUIHandler* This) {
  445. return This->lpVtbl->AddRef(This);
  446. }
  447. static FORCEINLINE ULONG IDocHostUIHandler_Release(IDocHostUIHandler* This) {
  448. return This->lpVtbl->Release(This);
  449. }
  450. /*** IDocHostUIHandler methods ***/
  451. static FORCEINLINE HRESULT IDocHostUIHandler_ShowContextMenu(IDocHostUIHandler* This,DWORD dwID,POINT *ppt,IUnknown *pcmdtReserved,IDispatch *pdispReserved) {
  452. return This->lpVtbl->ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved);
  453. }
  454. static FORCEINLINE HRESULT IDocHostUIHandler_GetHostInfo(IDocHostUIHandler* This,DOCHOSTUIINFO *pInfo) {
  455. return This->lpVtbl->GetHostInfo(This,pInfo);
  456. }
  457. static FORCEINLINE HRESULT IDocHostUIHandler_ShowUI(IDocHostUIHandler* This,DWORD dwID,IOleInPlaceActiveObject *pActiveObject,IOleCommandTarget *pCommandTarget,IOleInPlaceFrame *pFrame,IOleInPlaceUIWindow *pDoc) {
  458. return This->lpVtbl->ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc);
  459. }
  460. static FORCEINLINE HRESULT IDocHostUIHandler_HideUI(IDocHostUIHandler* This) {
  461. return This->lpVtbl->HideUI(This);
  462. }
  463. static FORCEINLINE HRESULT IDocHostUIHandler_UpdateUI(IDocHostUIHandler* This) {
  464. return This->lpVtbl->UpdateUI(This);
  465. }
  466. static FORCEINLINE HRESULT IDocHostUIHandler_EnableModeless(IDocHostUIHandler* This,WINBOOL fEnable) {
  467. return This->lpVtbl->EnableModeless(This,fEnable);
  468. }
  469. static FORCEINLINE HRESULT IDocHostUIHandler_OnDocWindowActivate(IDocHostUIHandler* This,WINBOOL fActivate) {
  470. return This->lpVtbl->OnDocWindowActivate(This,fActivate);
  471. }
  472. static FORCEINLINE HRESULT IDocHostUIHandler_OnFrameWindowActivate(IDocHostUIHandler* This,WINBOOL fActivate) {
  473. return This->lpVtbl->OnFrameWindowActivate(This,fActivate);
  474. }
  475. static FORCEINLINE HRESULT IDocHostUIHandler_ResizeBorder(IDocHostUIHandler* This,LPCRECT prcBorder,IOleInPlaceUIWindow *pUIWindow,WINBOOL fRameWindow) {
  476. return This->lpVtbl->ResizeBorder(This,prcBorder,pUIWindow,fRameWindow);
  477. }
  478. static FORCEINLINE HRESULT IDocHostUIHandler_TranslateAccelerator(IDocHostUIHandler* This,LPMSG lpMsg,const GUID *pguidCmdGroup,DWORD nCmdID) {
  479. return This->lpVtbl->TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID);
  480. }
  481. static FORCEINLINE HRESULT IDocHostUIHandler_GetOptionKeyPath(IDocHostUIHandler* This,LPOLESTR *pchKey,DWORD dw) {
  482. return This->lpVtbl->GetOptionKeyPath(This,pchKey,dw);
  483. }
  484. static FORCEINLINE HRESULT IDocHostUIHandler_GetDropTarget(IDocHostUIHandler* This,IDropTarget *pDropTarget,IDropTarget **ppDropTarget) {
  485. return This->lpVtbl->GetDropTarget(This,pDropTarget,ppDropTarget);
  486. }
  487. static FORCEINLINE HRESULT IDocHostUIHandler_GetExternal(IDocHostUIHandler* This,IDispatch **ppDispatch) {
  488. return This->lpVtbl->GetExternal(This,ppDispatch);
  489. }
  490. static FORCEINLINE HRESULT IDocHostUIHandler_TranslateUrl(IDocHostUIHandler* This,DWORD dwTranslate,LPWSTR pchURLIn,LPWSTR *ppchURLOut) {
  491. return This->lpVtbl->TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut);
  492. }
  493. static FORCEINLINE HRESULT IDocHostUIHandler_FilterDataObject(IDocHostUIHandler* This,IDataObject *pDO,IDataObject **ppDORet) {
  494. return This->lpVtbl->FilterDataObject(This,pDO,ppDORet);
  495. }
  496. #endif
  497. #endif
  498. #endif
  499. #endif /* __IDocHostUIHandler_INTERFACE_DEFINED__ */
  500. /*****************************************************************************
  501. * IDocHostUIHandler2 interface
  502. */
  503. #ifndef __IDocHostUIHandler2_INTERFACE_DEFINED__
  504. #define __IDocHostUIHandler2_INTERFACE_DEFINED__
  505. DEFINE_GUID(IID_IDocHostUIHandler2, 0x3050f6d0, 0x98b5, 0x11cf, 0xbb,0x82, 0x00,0xaa,0x00,0xbd,0xce,0x0b);
  506. #if defined(__cplusplus) && !defined(CINTERFACE)
  507. MIDL_INTERFACE("3050f6d0-98b5-11cf-bb82-00aa00bdce0b")
  508. IDocHostUIHandler2 : public IDocHostUIHandler
  509. {
  510. virtual HRESULT STDMETHODCALLTYPE GetOverrideKeyPath(
  511. LPOLESTR *pchKey,
  512. DWORD dw) = 0;
  513. };
  514. #ifdef __CRT_UUID_DECL
  515. __CRT_UUID_DECL(IDocHostUIHandler2, 0x3050f6d0, 0x98b5, 0x11cf, 0xbb,0x82, 0x00,0xaa,0x00,0xbd,0xce,0x0b)
  516. #endif
  517. #else
  518. typedef struct IDocHostUIHandler2Vtbl {
  519. BEGIN_INTERFACE
  520. /*** IUnknown methods ***/
  521. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  522. IDocHostUIHandler2 *This,
  523. REFIID riid,
  524. void **ppvObject);
  525. ULONG (STDMETHODCALLTYPE *AddRef)(
  526. IDocHostUIHandler2 *This);
  527. ULONG (STDMETHODCALLTYPE *Release)(
  528. IDocHostUIHandler2 *This);
  529. /*** IDocHostUIHandler methods ***/
  530. HRESULT (STDMETHODCALLTYPE *ShowContextMenu)(
  531. IDocHostUIHandler2 *This,
  532. DWORD dwID,
  533. POINT *ppt,
  534. IUnknown *pcmdtReserved,
  535. IDispatch *pdispReserved);
  536. HRESULT (STDMETHODCALLTYPE *GetHostInfo)(
  537. IDocHostUIHandler2 *This,
  538. DOCHOSTUIINFO *pInfo);
  539. HRESULT (STDMETHODCALLTYPE *ShowUI)(
  540. IDocHostUIHandler2 *This,
  541. DWORD dwID,
  542. IOleInPlaceActiveObject *pActiveObject,
  543. IOleCommandTarget *pCommandTarget,
  544. IOleInPlaceFrame *pFrame,
  545. IOleInPlaceUIWindow *pDoc);
  546. HRESULT (STDMETHODCALLTYPE *HideUI)(
  547. IDocHostUIHandler2 *This);
  548. HRESULT (STDMETHODCALLTYPE *UpdateUI)(
  549. IDocHostUIHandler2 *This);
  550. HRESULT (STDMETHODCALLTYPE *EnableModeless)(
  551. IDocHostUIHandler2 *This,
  552. WINBOOL fEnable);
  553. HRESULT (STDMETHODCALLTYPE *OnDocWindowActivate)(
  554. IDocHostUIHandler2 *This,
  555. WINBOOL fActivate);
  556. HRESULT (STDMETHODCALLTYPE *OnFrameWindowActivate)(
  557. IDocHostUIHandler2 *This,
  558. WINBOOL fActivate);
  559. HRESULT (STDMETHODCALLTYPE *ResizeBorder)(
  560. IDocHostUIHandler2 *This,
  561. LPCRECT prcBorder,
  562. IOleInPlaceUIWindow *pUIWindow,
  563. WINBOOL fRameWindow);
  564. HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)(
  565. IDocHostUIHandler2 *This,
  566. LPMSG lpMsg,
  567. const GUID *pguidCmdGroup,
  568. DWORD nCmdID);
  569. HRESULT (STDMETHODCALLTYPE *GetOptionKeyPath)(
  570. IDocHostUIHandler2 *This,
  571. LPOLESTR *pchKey,
  572. DWORD dw);
  573. HRESULT (STDMETHODCALLTYPE *GetDropTarget)(
  574. IDocHostUIHandler2 *This,
  575. IDropTarget *pDropTarget,
  576. IDropTarget **ppDropTarget);
  577. HRESULT (STDMETHODCALLTYPE *GetExternal)(
  578. IDocHostUIHandler2 *This,
  579. IDispatch **ppDispatch);
  580. HRESULT (STDMETHODCALLTYPE *TranslateUrl)(
  581. IDocHostUIHandler2 *This,
  582. DWORD dwTranslate,
  583. LPWSTR pchURLIn,
  584. LPWSTR *ppchURLOut);
  585. HRESULT (STDMETHODCALLTYPE *FilterDataObject)(
  586. IDocHostUIHandler2 *This,
  587. IDataObject *pDO,
  588. IDataObject **ppDORet);
  589. /*** IDocHostUIHandler2 methods ***/
  590. HRESULT (STDMETHODCALLTYPE *GetOverrideKeyPath)(
  591. IDocHostUIHandler2 *This,
  592. LPOLESTR *pchKey,
  593. DWORD dw);
  594. END_INTERFACE
  595. } IDocHostUIHandler2Vtbl;
  596. interface IDocHostUIHandler2 {
  597. CONST_VTBL IDocHostUIHandler2Vtbl* lpVtbl;
  598. };
  599. #ifdef COBJMACROS
  600. #ifndef WIDL_C_INLINE_WRAPPERS
  601. /*** IUnknown methods ***/
  602. #define IDocHostUIHandler2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  603. #define IDocHostUIHandler2_AddRef(This) (This)->lpVtbl->AddRef(This)
  604. #define IDocHostUIHandler2_Release(This) (This)->lpVtbl->Release(This)
  605. /*** IDocHostUIHandler methods ***/
  606. #define IDocHostUIHandler2_ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved) (This)->lpVtbl->ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved)
  607. #define IDocHostUIHandler2_GetHostInfo(This,pInfo) (This)->lpVtbl->GetHostInfo(This,pInfo)
  608. #define IDocHostUIHandler2_ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc) (This)->lpVtbl->ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc)
  609. #define IDocHostUIHandler2_HideUI(This) (This)->lpVtbl->HideUI(This)
  610. #define IDocHostUIHandler2_UpdateUI(This) (This)->lpVtbl->UpdateUI(This)
  611. #define IDocHostUIHandler2_EnableModeless(This,fEnable) (This)->lpVtbl->EnableModeless(This,fEnable)
  612. #define IDocHostUIHandler2_OnDocWindowActivate(This,fActivate) (This)->lpVtbl->OnDocWindowActivate(This,fActivate)
  613. #define IDocHostUIHandler2_OnFrameWindowActivate(This,fActivate) (This)->lpVtbl->OnFrameWindowActivate(This,fActivate)
  614. #define IDocHostUIHandler2_ResizeBorder(This,prcBorder,pUIWindow,fRameWindow) (This)->lpVtbl->ResizeBorder(This,prcBorder,pUIWindow,fRameWindow)
  615. #define IDocHostUIHandler2_TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID) (This)->lpVtbl->TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID)
  616. #define IDocHostUIHandler2_GetOptionKeyPath(This,pchKey,dw) (This)->lpVtbl->GetOptionKeyPath(This,pchKey,dw)
  617. #define IDocHostUIHandler2_GetDropTarget(This,pDropTarget,ppDropTarget) (This)->lpVtbl->GetDropTarget(This,pDropTarget,ppDropTarget)
  618. #define IDocHostUIHandler2_GetExternal(This,ppDispatch) (This)->lpVtbl->GetExternal(This,ppDispatch)
  619. #define IDocHostUIHandler2_TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut) (This)->lpVtbl->TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut)
  620. #define IDocHostUIHandler2_FilterDataObject(This,pDO,ppDORet) (This)->lpVtbl->FilterDataObject(This,pDO,ppDORet)
  621. /*** IDocHostUIHandler2 methods ***/
  622. #define IDocHostUIHandler2_GetOverrideKeyPath(This,pchKey,dw) (This)->lpVtbl->GetOverrideKeyPath(This,pchKey,dw)
  623. #else
  624. /*** IUnknown methods ***/
  625. static FORCEINLINE HRESULT IDocHostUIHandler2_QueryInterface(IDocHostUIHandler2* This,REFIID riid,void **ppvObject) {
  626. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  627. }
  628. static FORCEINLINE ULONG IDocHostUIHandler2_AddRef(IDocHostUIHandler2* This) {
  629. return This->lpVtbl->AddRef(This);
  630. }
  631. static FORCEINLINE ULONG IDocHostUIHandler2_Release(IDocHostUIHandler2* This) {
  632. return This->lpVtbl->Release(This);
  633. }
  634. /*** IDocHostUIHandler methods ***/
  635. static FORCEINLINE HRESULT IDocHostUIHandler2_ShowContextMenu(IDocHostUIHandler2* This,DWORD dwID,POINT *ppt,IUnknown *pcmdtReserved,IDispatch *pdispReserved) {
  636. return This->lpVtbl->ShowContextMenu(This,dwID,ppt,pcmdtReserved,pdispReserved);
  637. }
  638. static FORCEINLINE HRESULT IDocHostUIHandler2_GetHostInfo(IDocHostUIHandler2* This,DOCHOSTUIINFO *pInfo) {
  639. return This->lpVtbl->GetHostInfo(This,pInfo);
  640. }
  641. static FORCEINLINE HRESULT IDocHostUIHandler2_ShowUI(IDocHostUIHandler2* This,DWORD dwID,IOleInPlaceActiveObject *pActiveObject,IOleCommandTarget *pCommandTarget,IOleInPlaceFrame *pFrame,IOleInPlaceUIWindow *pDoc) {
  642. return This->lpVtbl->ShowUI(This,dwID,pActiveObject,pCommandTarget,pFrame,pDoc);
  643. }
  644. static FORCEINLINE HRESULT IDocHostUIHandler2_HideUI(IDocHostUIHandler2* This) {
  645. return This->lpVtbl->HideUI(This);
  646. }
  647. static FORCEINLINE HRESULT IDocHostUIHandler2_UpdateUI(IDocHostUIHandler2* This) {
  648. return This->lpVtbl->UpdateUI(This);
  649. }
  650. static FORCEINLINE HRESULT IDocHostUIHandler2_EnableModeless(IDocHostUIHandler2* This,WINBOOL fEnable) {
  651. return This->lpVtbl->EnableModeless(This,fEnable);
  652. }
  653. static FORCEINLINE HRESULT IDocHostUIHandler2_OnDocWindowActivate(IDocHostUIHandler2* This,WINBOOL fActivate) {
  654. return This->lpVtbl->OnDocWindowActivate(This,fActivate);
  655. }
  656. static FORCEINLINE HRESULT IDocHostUIHandler2_OnFrameWindowActivate(IDocHostUIHandler2* This,WINBOOL fActivate) {
  657. return This->lpVtbl->OnFrameWindowActivate(This,fActivate);
  658. }
  659. static FORCEINLINE HRESULT IDocHostUIHandler2_ResizeBorder(IDocHostUIHandler2* This,LPCRECT prcBorder,IOleInPlaceUIWindow *pUIWindow,WINBOOL fRameWindow) {
  660. return This->lpVtbl->ResizeBorder(This,prcBorder,pUIWindow,fRameWindow);
  661. }
  662. static FORCEINLINE HRESULT IDocHostUIHandler2_TranslateAccelerator(IDocHostUIHandler2* This,LPMSG lpMsg,const GUID *pguidCmdGroup,DWORD nCmdID) {
  663. return This->lpVtbl->TranslateAccelerator(This,lpMsg,pguidCmdGroup,nCmdID);
  664. }
  665. static FORCEINLINE HRESULT IDocHostUIHandler2_GetOptionKeyPath(IDocHostUIHandler2* This,LPOLESTR *pchKey,DWORD dw) {
  666. return This->lpVtbl->GetOptionKeyPath(This,pchKey,dw);
  667. }
  668. static FORCEINLINE HRESULT IDocHostUIHandler2_GetDropTarget(IDocHostUIHandler2* This,IDropTarget *pDropTarget,IDropTarget **ppDropTarget) {
  669. return This->lpVtbl->GetDropTarget(This,pDropTarget,ppDropTarget);
  670. }
  671. static FORCEINLINE HRESULT IDocHostUIHandler2_GetExternal(IDocHostUIHandler2* This,IDispatch **ppDispatch) {
  672. return This->lpVtbl->GetExternal(This,ppDispatch);
  673. }
  674. static FORCEINLINE HRESULT IDocHostUIHandler2_TranslateUrl(IDocHostUIHandler2* This,DWORD dwTranslate,LPWSTR pchURLIn,LPWSTR *ppchURLOut) {
  675. return This->lpVtbl->TranslateUrl(This,dwTranslate,pchURLIn,ppchURLOut);
  676. }
  677. static FORCEINLINE HRESULT IDocHostUIHandler2_FilterDataObject(IDocHostUIHandler2* This,IDataObject *pDO,IDataObject **ppDORet) {
  678. return This->lpVtbl->FilterDataObject(This,pDO,ppDORet);
  679. }
  680. /*** IDocHostUIHandler2 methods ***/
  681. static FORCEINLINE HRESULT IDocHostUIHandler2_GetOverrideKeyPath(IDocHostUIHandler2* This,LPOLESTR *pchKey,DWORD dw) {
  682. return This->lpVtbl->GetOverrideKeyPath(This,pchKey,dw);
  683. }
  684. #endif
  685. #endif
  686. #endif
  687. #endif /* __IDocHostUIHandler2_INTERFACE_DEFINED__ */
  688. /*****************************************************************************
  689. * ICustomDoc interface
  690. */
  691. #ifndef __ICustomDoc_INTERFACE_DEFINED__
  692. #define __ICustomDoc_INTERFACE_DEFINED__
  693. DEFINE_GUID(IID_ICustomDoc, 0x3050f3f0, 0x98b5, 0x11cf, 0xbb,0x82, 0x00,0xaa,0x00,0xbd,0xce,0x0b);
  694. #if defined(__cplusplus) && !defined(CINTERFACE)
  695. MIDL_INTERFACE("3050f3f0-98b5-11cf-bb82-00aa00bdce0b")
  696. ICustomDoc : public IUnknown
  697. {
  698. virtual HRESULT STDMETHODCALLTYPE SetUIHandler(
  699. IDocHostUIHandler *pUIHandler) = 0;
  700. };
  701. #ifdef __CRT_UUID_DECL
  702. __CRT_UUID_DECL(ICustomDoc, 0x3050f3f0, 0x98b5, 0x11cf, 0xbb,0x82, 0x00,0xaa,0x00,0xbd,0xce,0x0b)
  703. #endif
  704. #else
  705. typedef struct ICustomDocVtbl {
  706. BEGIN_INTERFACE
  707. /*** IUnknown methods ***/
  708. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  709. ICustomDoc *This,
  710. REFIID riid,
  711. void **ppvObject);
  712. ULONG (STDMETHODCALLTYPE *AddRef)(
  713. ICustomDoc *This);
  714. ULONG (STDMETHODCALLTYPE *Release)(
  715. ICustomDoc *This);
  716. /*** ICustomDoc methods ***/
  717. HRESULT (STDMETHODCALLTYPE *SetUIHandler)(
  718. ICustomDoc *This,
  719. IDocHostUIHandler *pUIHandler);
  720. END_INTERFACE
  721. } ICustomDocVtbl;
  722. interface ICustomDoc {
  723. CONST_VTBL ICustomDocVtbl* lpVtbl;
  724. };
  725. #ifdef COBJMACROS
  726. #ifndef WIDL_C_INLINE_WRAPPERS
  727. /*** IUnknown methods ***/
  728. #define ICustomDoc_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  729. #define ICustomDoc_AddRef(This) (This)->lpVtbl->AddRef(This)
  730. #define ICustomDoc_Release(This) (This)->lpVtbl->Release(This)
  731. /*** ICustomDoc methods ***/
  732. #define ICustomDoc_SetUIHandler(This,pUIHandler) (This)->lpVtbl->SetUIHandler(This,pUIHandler)
  733. #else
  734. /*** IUnknown methods ***/
  735. static FORCEINLINE HRESULT ICustomDoc_QueryInterface(ICustomDoc* This,REFIID riid,void **ppvObject) {
  736. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  737. }
  738. static FORCEINLINE ULONG ICustomDoc_AddRef(ICustomDoc* This) {
  739. return This->lpVtbl->AddRef(This);
  740. }
  741. static FORCEINLINE ULONG ICustomDoc_Release(ICustomDoc* This) {
  742. return This->lpVtbl->Release(This);
  743. }
  744. /*** ICustomDoc methods ***/
  745. static FORCEINLINE HRESULT ICustomDoc_SetUIHandler(ICustomDoc* This,IDocHostUIHandler *pUIHandler) {
  746. return This->lpVtbl->SetUIHandler(This,pUIHandler);
  747. }
  748. #endif
  749. #endif
  750. #endif
  751. #endif /* __ICustomDoc_INTERFACE_DEFINED__ */
  752. /*****************************************************************************
  753. * IDocHostShowUI interface
  754. */
  755. #ifndef __IDocHostShowUI_INTERFACE_DEFINED__
  756. #define __IDocHostShowUI_INTERFACE_DEFINED__
  757. DEFINE_GUID(IID_IDocHostShowUI, 0xc4d244b0, 0xd43e, 0x11cf, 0x89,0x3b, 0x00,0xaa,0x00,0xbd,0xce,0x1a);
  758. #if defined(__cplusplus) && !defined(CINTERFACE)
  759. MIDL_INTERFACE("c4d244b0-d43e-11cf-893b-00aa00bdce1a")
  760. IDocHostShowUI : public IUnknown
  761. {
  762. virtual HRESULT STDMETHODCALLTYPE ShowMessage(
  763. HWND hwnd,
  764. LPOLESTR lpstrText,
  765. LPOLESTR lpstrCaption,
  766. DWORD dwType,
  767. LPOLESTR lpstrHelpFile,
  768. DWORD dwHelpContext,
  769. LRESULT *plResult) = 0;
  770. virtual HRESULT STDMETHODCALLTYPE ShowHelp(
  771. HWND hwnd,
  772. LPOLESTR pszHelpFile,
  773. UINT uCommand,
  774. DWORD dwData,
  775. POINT ptMouse,
  776. IDispatch *pDispatchObjectHit) = 0;
  777. };
  778. #ifdef __CRT_UUID_DECL
  779. __CRT_UUID_DECL(IDocHostShowUI, 0xc4d244b0, 0xd43e, 0x11cf, 0x89,0x3b, 0x00,0xaa,0x00,0xbd,0xce,0x1a)
  780. #endif
  781. #else
  782. typedef struct IDocHostShowUIVtbl {
  783. BEGIN_INTERFACE
  784. /*** IUnknown methods ***/
  785. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  786. IDocHostShowUI *This,
  787. REFIID riid,
  788. void **ppvObject);
  789. ULONG (STDMETHODCALLTYPE *AddRef)(
  790. IDocHostShowUI *This);
  791. ULONG (STDMETHODCALLTYPE *Release)(
  792. IDocHostShowUI *This);
  793. /*** IDocHostShowUI methods ***/
  794. HRESULT (STDMETHODCALLTYPE *ShowMessage)(
  795. IDocHostShowUI *This,
  796. HWND hwnd,
  797. LPOLESTR lpstrText,
  798. LPOLESTR lpstrCaption,
  799. DWORD dwType,
  800. LPOLESTR lpstrHelpFile,
  801. DWORD dwHelpContext,
  802. LRESULT *plResult);
  803. HRESULT (STDMETHODCALLTYPE *ShowHelp)(
  804. IDocHostShowUI *This,
  805. HWND hwnd,
  806. LPOLESTR pszHelpFile,
  807. UINT uCommand,
  808. DWORD dwData,
  809. POINT ptMouse,
  810. IDispatch *pDispatchObjectHit);
  811. END_INTERFACE
  812. } IDocHostShowUIVtbl;
  813. interface IDocHostShowUI {
  814. CONST_VTBL IDocHostShowUIVtbl* lpVtbl;
  815. };
  816. #ifdef COBJMACROS
  817. #ifndef WIDL_C_INLINE_WRAPPERS
  818. /*** IUnknown methods ***/
  819. #define IDocHostShowUI_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  820. #define IDocHostShowUI_AddRef(This) (This)->lpVtbl->AddRef(This)
  821. #define IDocHostShowUI_Release(This) (This)->lpVtbl->Release(This)
  822. /*** IDocHostShowUI methods ***/
  823. #define IDocHostShowUI_ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult) (This)->lpVtbl->ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult)
  824. #define IDocHostShowUI_ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit) (This)->lpVtbl->ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit)
  825. #else
  826. /*** IUnknown methods ***/
  827. static FORCEINLINE HRESULT IDocHostShowUI_QueryInterface(IDocHostShowUI* This,REFIID riid,void **ppvObject) {
  828. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  829. }
  830. static FORCEINLINE ULONG IDocHostShowUI_AddRef(IDocHostShowUI* This) {
  831. return This->lpVtbl->AddRef(This);
  832. }
  833. static FORCEINLINE ULONG IDocHostShowUI_Release(IDocHostShowUI* This) {
  834. return This->lpVtbl->Release(This);
  835. }
  836. /*** IDocHostShowUI methods ***/
  837. static FORCEINLINE HRESULT IDocHostShowUI_ShowMessage(IDocHostShowUI* This,HWND hwnd,LPOLESTR lpstrText,LPOLESTR lpstrCaption,DWORD dwType,LPOLESTR lpstrHelpFile,DWORD dwHelpContext,LRESULT *plResult) {
  838. return This->lpVtbl->ShowMessage(This,hwnd,lpstrText,lpstrCaption,dwType,lpstrHelpFile,dwHelpContext,plResult);
  839. }
  840. static FORCEINLINE HRESULT IDocHostShowUI_ShowHelp(IDocHostShowUI* This,HWND hwnd,LPOLESTR pszHelpFile,UINT uCommand,DWORD dwData,POINT ptMouse,IDispatch *pDispatchObjectHit) {
  841. return This->lpVtbl->ShowHelp(This,hwnd,pszHelpFile,uCommand,dwData,ptMouse,pDispatchObjectHit);
  842. }
  843. #endif
  844. #endif
  845. #endif
  846. #endif /* __IDocHostShowUI_INTERFACE_DEFINED__ */
  847. #define IClassFactory3 IClassFactoryEx
  848. #define IID_IClassFactory3 IID_IClassFactoryEx
  849. #define SID_SHTMLOMWindowServices IID_IHTMLOMWindowServices
  850. /*****************************************************************************
  851. * IClassFactoryEx interface
  852. */
  853. #ifndef __IClassFactoryEx_INTERFACE_DEFINED__
  854. #define __IClassFactoryEx_INTERFACE_DEFINED__
  855. DEFINE_GUID(IID_IClassFactoryEx, 0x342d1ea0, 0xae25, 0x11d1, 0x89,0xc5, 0x00,0x60,0x08,0xc3,0xfb,0xfc);
  856. #if defined(__cplusplus) && !defined(CINTERFACE)
  857. MIDL_INTERFACE("342d1ea0-ae25-11d1-89c5-006008c3fbfc")
  858. IClassFactoryEx : public IClassFactory
  859. {
  860. virtual HRESULT STDMETHODCALLTYPE CreateInstanceWithContext(
  861. IUnknown *punkContext,
  862. IUnknown *punkOuter,
  863. REFIID riid,
  864. void **ppv) = 0;
  865. };
  866. #ifdef __CRT_UUID_DECL
  867. __CRT_UUID_DECL(IClassFactoryEx, 0x342d1ea0, 0xae25, 0x11d1, 0x89,0xc5, 0x00,0x60,0x08,0xc3,0xfb,0xfc)
  868. #endif
  869. #else
  870. typedef struct IClassFactoryExVtbl {
  871. BEGIN_INTERFACE
  872. /*** IUnknown methods ***/
  873. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  874. IClassFactoryEx *This,
  875. REFIID riid,
  876. void **ppvObject);
  877. ULONG (STDMETHODCALLTYPE *AddRef)(
  878. IClassFactoryEx *This);
  879. ULONG (STDMETHODCALLTYPE *Release)(
  880. IClassFactoryEx *This);
  881. /*** IClassFactory methods ***/
  882. HRESULT (STDMETHODCALLTYPE *CreateInstance)(
  883. IClassFactoryEx *This,
  884. IUnknown *pUnkOuter,
  885. REFIID riid,
  886. void **ppvObject);
  887. HRESULT (STDMETHODCALLTYPE *LockServer)(
  888. IClassFactoryEx *This,
  889. WINBOOL fLock);
  890. /*** IClassFactoryEx methods ***/
  891. HRESULT (STDMETHODCALLTYPE *CreateInstanceWithContext)(
  892. IClassFactoryEx *This,
  893. IUnknown *punkContext,
  894. IUnknown *punkOuter,
  895. REFIID riid,
  896. void **ppv);
  897. END_INTERFACE
  898. } IClassFactoryExVtbl;
  899. interface IClassFactoryEx {
  900. CONST_VTBL IClassFactoryExVtbl* lpVtbl;
  901. };
  902. #ifdef COBJMACROS
  903. #ifndef WIDL_C_INLINE_WRAPPERS
  904. /*** IUnknown methods ***/
  905. #define IClassFactoryEx_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  906. #define IClassFactoryEx_AddRef(This) (This)->lpVtbl->AddRef(This)
  907. #define IClassFactoryEx_Release(This) (This)->lpVtbl->Release(This)
  908. /*** IClassFactory methods ***/
  909. #define IClassFactoryEx_CreateInstance(This,pUnkOuter,riid,ppvObject) (This)->lpVtbl->CreateInstance(This,pUnkOuter,riid,ppvObject)
  910. #define IClassFactoryEx_LockServer(This,fLock) (This)->lpVtbl->LockServer(This,fLock)
  911. /*** IClassFactoryEx methods ***/
  912. #define IClassFactoryEx_CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv) (This)->lpVtbl->CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv)
  913. #else
  914. /*** IUnknown methods ***/
  915. static FORCEINLINE HRESULT IClassFactoryEx_QueryInterface(IClassFactoryEx* This,REFIID riid,void **ppvObject) {
  916. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  917. }
  918. static FORCEINLINE ULONG IClassFactoryEx_AddRef(IClassFactoryEx* This) {
  919. return This->lpVtbl->AddRef(This);
  920. }
  921. static FORCEINLINE ULONG IClassFactoryEx_Release(IClassFactoryEx* This) {
  922. return This->lpVtbl->Release(This);
  923. }
  924. /*** IClassFactory methods ***/
  925. static FORCEINLINE HRESULT IClassFactoryEx_CreateInstance(IClassFactoryEx* This,IUnknown *pUnkOuter,REFIID riid,void **ppvObject) {
  926. return This->lpVtbl->CreateInstance(This,pUnkOuter,riid,ppvObject);
  927. }
  928. static FORCEINLINE HRESULT IClassFactoryEx_LockServer(IClassFactoryEx* This,WINBOOL fLock) {
  929. return This->lpVtbl->LockServer(This,fLock);
  930. }
  931. /*** IClassFactoryEx methods ***/
  932. static FORCEINLINE HRESULT IClassFactoryEx_CreateInstanceWithContext(IClassFactoryEx* This,IUnknown *punkContext,IUnknown *punkOuter,REFIID riid,void **ppv) {
  933. return This->lpVtbl->CreateInstanceWithContext(This,punkContext,punkOuter,riid,ppv);
  934. }
  935. #endif
  936. #endif
  937. #endif
  938. #endif /* __IClassFactoryEx_INTERFACE_DEFINED__ */
  939. /*****************************************************************************
  940. * IHTMLOMWindowServices interface
  941. */
  942. #ifndef __IHTMLOMWindowServices_INTERFACE_DEFINED__
  943. #define __IHTMLOMWindowServices_INTERFACE_DEFINED__
  944. DEFINE_GUID(IID_IHTMLOMWindowServices, 0x3050f5fc, 0x98b5, 0x11cf, 0xbb,0x82, 0x00,0xaa,0x00,0xbd,0xce,0x0b);
  945. #if defined(__cplusplus) && !defined(CINTERFACE)
  946. MIDL_INTERFACE("3050f5fc-98b5-11cf-bb82-00aa00bdce0b")
  947. IHTMLOMWindowServices : public IUnknown
  948. {
  949. virtual HRESULT STDMETHODCALLTYPE moveTo(
  950. LONG x,
  951. LONG y) = 0;
  952. virtual HRESULT STDMETHODCALLTYPE moveBy(
  953. LONG x,
  954. LONG y) = 0;
  955. virtual HRESULT STDMETHODCALLTYPE resizeTo(
  956. LONG x,
  957. LONG y) = 0;
  958. virtual HRESULT STDMETHODCALLTYPE resizeBy(
  959. LONG x,
  960. LONG y) = 0;
  961. };
  962. #ifdef __CRT_UUID_DECL
  963. __CRT_UUID_DECL(IHTMLOMWindowServices, 0x3050f5fc, 0x98b5, 0x11cf, 0xbb,0x82, 0x00,0xaa,0x00,0xbd,0xce,0x0b)
  964. #endif
  965. #else
  966. typedef struct IHTMLOMWindowServicesVtbl {
  967. BEGIN_INTERFACE
  968. /*** IUnknown methods ***/
  969. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  970. IHTMLOMWindowServices *This,
  971. REFIID riid,
  972. void **ppvObject);
  973. ULONG (STDMETHODCALLTYPE *AddRef)(
  974. IHTMLOMWindowServices *This);
  975. ULONG (STDMETHODCALLTYPE *Release)(
  976. IHTMLOMWindowServices *This);
  977. /*** IHTMLOMWindowServices methods ***/
  978. HRESULT (STDMETHODCALLTYPE *moveTo)(
  979. IHTMLOMWindowServices *This,
  980. LONG x,
  981. LONG y);
  982. HRESULT (STDMETHODCALLTYPE *moveBy)(
  983. IHTMLOMWindowServices *This,
  984. LONG x,
  985. LONG y);
  986. HRESULT (STDMETHODCALLTYPE *resizeTo)(
  987. IHTMLOMWindowServices *This,
  988. LONG x,
  989. LONG y);
  990. HRESULT (STDMETHODCALLTYPE *resizeBy)(
  991. IHTMLOMWindowServices *This,
  992. LONG x,
  993. LONG y);
  994. END_INTERFACE
  995. } IHTMLOMWindowServicesVtbl;
  996. interface IHTMLOMWindowServices {
  997. CONST_VTBL IHTMLOMWindowServicesVtbl* lpVtbl;
  998. };
  999. #ifdef COBJMACROS
  1000. #ifndef WIDL_C_INLINE_WRAPPERS
  1001. /*** IUnknown methods ***/
  1002. #define IHTMLOMWindowServices_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1003. #define IHTMLOMWindowServices_AddRef(This) (This)->lpVtbl->AddRef(This)
  1004. #define IHTMLOMWindowServices_Release(This) (This)->lpVtbl->Release(This)
  1005. /*** IHTMLOMWindowServices methods ***/
  1006. #define IHTMLOMWindowServices_moveTo(This,x,y) (This)->lpVtbl->moveTo(This,x,y)
  1007. #define IHTMLOMWindowServices_moveBy(This,x,y) (This)->lpVtbl->moveBy(This,x,y)
  1008. #define IHTMLOMWindowServices_resizeTo(This,x,y) (This)->lpVtbl->resizeTo(This,x,y)
  1009. #define IHTMLOMWindowServices_resizeBy(This,x,y) (This)->lpVtbl->resizeBy(This,x,y)
  1010. #else
  1011. /*** IUnknown methods ***/
  1012. static FORCEINLINE HRESULT IHTMLOMWindowServices_QueryInterface(IHTMLOMWindowServices* This,REFIID riid,void **ppvObject) {
  1013. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1014. }
  1015. static FORCEINLINE ULONG IHTMLOMWindowServices_AddRef(IHTMLOMWindowServices* This) {
  1016. return This->lpVtbl->AddRef(This);
  1017. }
  1018. static FORCEINLINE ULONG IHTMLOMWindowServices_Release(IHTMLOMWindowServices* This) {
  1019. return This->lpVtbl->Release(This);
  1020. }
  1021. /*** IHTMLOMWindowServices methods ***/
  1022. static FORCEINLINE HRESULT IHTMLOMWindowServices_moveTo(IHTMLOMWindowServices* This,LONG x,LONG y) {
  1023. return This->lpVtbl->moveTo(This,x,y);
  1024. }
  1025. static FORCEINLINE HRESULT IHTMLOMWindowServices_moveBy(IHTMLOMWindowServices* This,LONG x,LONG y) {
  1026. return This->lpVtbl->moveBy(This,x,y);
  1027. }
  1028. static FORCEINLINE HRESULT IHTMLOMWindowServices_resizeTo(IHTMLOMWindowServices* This,LONG x,LONG y) {
  1029. return This->lpVtbl->resizeTo(This,x,y);
  1030. }
  1031. static FORCEINLINE HRESULT IHTMLOMWindowServices_resizeBy(IHTMLOMWindowServices* This,LONG x,LONG y) {
  1032. return This->lpVtbl->resizeBy(This,x,y);
  1033. }
  1034. #endif
  1035. #endif
  1036. #endif
  1037. #endif /* __IHTMLOMWindowServices_INTERFACE_DEFINED__ */
  1038. #endif
  1039. #endif
  1040. /* Begin additional prototypes for all interfaces */
  1041. /* End additional prototypes */
  1042. #ifdef __cplusplus
  1043. }
  1044. #endif
  1045. #endif /* __mshtmhst_h__ */