1 | cpp_quote("/**")
|
---|
2 | cpp_quote(" * This file is part of the mingw-w64 runtime package.")
|
---|
3 | cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
|
---|
4 | cpp_quote(" */")
|
---|
5 | cpp_quote("")
|
---|
6 |
|
---|
7 | import "ocidl.idl";
|
---|
8 | import "objidl.idl";
|
---|
9 | import "oleidl.idl";
|
---|
10 | import "oaidl.idl";
|
---|
11 | import "docobj.idl";
|
---|
12 |
|
---|
13 | cpp_quote("#include <winapifamily.h>")
|
---|
14 | cpp_quote("")
|
---|
15 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
---|
16 | cpp_quote("#ifndef MSHTMHST_H")
|
---|
17 | cpp_quote("#define MSHTMHST_H")
|
---|
18 |
|
---|
19 | cpp_quote("#define CONTEXT_MENU_DEFAULT 0")
|
---|
20 | cpp_quote("#define CONTEXT_MENU_IMAGE 1")
|
---|
21 | cpp_quote("#define CONTEXT_MENU_CONTROL 2")
|
---|
22 | cpp_quote("#define CONTEXT_MENU_TABLE 3")
|
---|
23 | cpp_quote("#define CONTEXT_MENU_TEXTSELECT 4")
|
---|
24 | cpp_quote("#define CONTEXT_MENU_ANCHOR 5")
|
---|
25 | cpp_quote("#define CONTEXT_MENU_UNKNOWN 6")
|
---|
26 | cpp_quote("#define CONTEXT_MENU_IMGDYNSRC 7")
|
---|
27 | cpp_quote("#define CONTEXT_MENU_DEBUG 8")
|
---|
28 | cpp_quote("#define CONTEXT_MENU_VSCROLL 9")
|
---|
29 | cpp_quote("#define CONTEXT_MENU_HSCROLL 10")
|
---|
30 | cpp_quote("#define CONTEXT_MENU_MEDIA 11")
|
---|
31 | cpp_quote("")
|
---|
32 | cpp_quote("#define MENUEXT_SHOWDIALOG 0x1")
|
---|
33 | cpp_quote("")
|
---|
34 | cpp_quote("#define CMDID_SCRIPTSITE_URL 0")
|
---|
35 | cpp_quote("#define CMDID_SCRIPTSITE_HTMLDLGTRUST 1")
|
---|
36 | cpp_quote("#define CMDID_SCRIPTSITE_SECSTATE 2")
|
---|
37 | cpp_quote("#define CMDID_SCRIPTSITE_SID 3")
|
---|
38 | cpp_quote("#define CMDID_SCRIPTSITE_TRUSTEDDOC 4")
|
---|
39 | cpp_quote("#define CMDID_SCRIPTSITE_SECURITY_WINDOW 5")
|
---|
40 | cpp_quote("#define CMDID_SCRIPTSITE_NAMESPACE 6")
|
---|
41 | cpp_quote("#define CMDID_SCRIPTSITE_IURI 7")
|
---|
42 | cpp_quote("#define CMDID_HOSTCONTEXT_URL 8")
|
---|
43 | cpp_quote("#define CMDID_SCRIPTSITE_ALLOWRECOVERY 9")
|
---|
44 | cpp_quote("")
|
---|
45 | cpp_quote("#define HTMLDLG_NOUI 0x10")
|
---|
46 | cpp_quote("#define HTMLDLG_MODAL 0x20")
|
---|
47 | cpp_quote("#define HTMLDLG_MODELESS 0x40")
|
---|
48 | cpp_quote("#define HTMLDLG_PRINT_TEMPLATE 0x80")
|
---|
49 | cpp_quote("#define HTMLDLG_VERIFY 0x100")
|
---|
50 | cpp_quote("#define HTMLDLG_ALLOW_UNKNOWN_THREAD 0x200")
|
---|
51 | cpp_quote("")
|
---|
52 | cpp_quote("#define PRINT_DONTBOTHERUSER 0x1")
|
---|
53 | cpp_quote("#define PRINT_WAITFORCOMPLETION 0x2")
|
---|
54 |
|
---|
55 | cpp_quote("#define CMDSETID_Forms3 CGID_MSHTML")
|
---|
56 | cpp_quote("#define SZ_HTML_CLIENTSITE_OBJECTPARAM L\"{d4db6850-5385-11d0-89e9-00a0c90a90ac}\"")
|
---|
57 |
|
---|
58 | cpp_quote("EXTERN_C const GUID CGID_ScriptSite;")
|
---|
59 | cpp_quote("EXTERN_C const GUID CGID_MSHTML;")
|
---|
60 | cpp_quote("EXTERN_C const GUID CLSID_HostDialogHelper;")
|
---|
61 |
|
---|
62 | cpp_quote("DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);")
|
---|
63 |
|
---|
64 | cpp_quote("#ifndef __IHTMLWindow2_FWD_DEFINED__")
|
---|
65 | cpp_quote("#define __IHTMLWindow2_FWD_DEFINED__")
|
---|
66 | cpp_quote("typedef interface IHTMLWindow2 IHTMLWindow2;")
|
---|
67 | cpp_quote("#endif")
|
---|
68 | cpp_quote("")
|
---|
69 | cpp_quote("typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, WCHAR *pchOptions, VARIANT *pvArgOut);")
|
---|
70 | cpp_quote("typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGEXFN (HWND hwndParent, IMoniker *pmk, DWORD dwDialogFlags, VARIANT *pvarArgIn, WCHAR *pchOptions, VARIANT *pvArgOut);")
|
---|
71 | cpp_quote("typedef HRESULT STDAPICALLTYPE SHOWMODELESSHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, VARIANT *pvarOptions, IHTMLWindow2 **ppWindow);")
|
---|
72 | cpp_quote("typedef HRESULT STDAPICALLTYPE IEREGISTERXMLNSFN (LPCWSTR lpszURI, GUID clsid, BOOL fMachine);")
|
---|
73 | cpp_quote("typedef HRESULT STDAPICALLTYPE IEISXMLNSREGISTEREDFN (LPCWSTR lpszURI, GUID *pCLSID);")
|
---|
74 | cpp_quote("")
|
---|
75 | cpp_quote("STDAPI ShowHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, LPWSTR pchOptions, VARIANT *pvarArgOut);")
|
---|
76 | cpp_quote("STDAPI ShowHTMLDialogEx (HWND hwndParent, IMoniker *pMk, DWORD dwDialogFlags, VARIANT *pvarArgIn, LPWSTR pchOptions, VARIANT *pvarArgOut);")
|
---|
77 | cpp_quote("STDAPI ShowModelessHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, VARIANT *pvarOptions, IHTMLWindow2 **ppWindow);")
|
---|
78 | cpp_quote("#if !defined (_ARM_) && !defined (__arm__)")
|
---|
79 | cpp_quote("STDAPI RunHTMLApplication (HINSTANCE hinst, HINSTANCE hPrevInst, LPSTR szCmdLine, int nCmdShow);")
|
---|
80 | cpp_quote("#endif")
|
---|
81 | cpp_quote("STDAPI CreateHTMLPropertyPage (IMoniker *pmk, IPropertyPage **ppPP);")
|
---|
82 | cpp_quote("STDAPI EarlyStartDisplaySystem (void);")
|
---|
83 | cpp_quote("STDAPI IERegisterXMLNS (LPCWSTR lpszURI, GUID clsid, BOOL fMachine);")
|
---|
84 | cpp_quote("STDAPI IEIsXMLNSRegistered (LPCWSTR lpszURI, GUID *pCLSID);")
|
---|
85 | cpp_quote("STDAPI GetColorValueFromString (LPCWSTR lpszColor, BOOL fStrictCSS1, BOOL fIsStandardsCSS, COLORREF *pColor);")
|
---|
86 |
|
---|
87 | typedef enum tagDOCHOSTUIDBLCLK {
|
---|
88 | DOCHOSTUIDBLCLK_DEFAULT = 0,
|
---|
89 | DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
|
---|
90 | DOCHOSTUIDBLCLK_SHOWCODE = 2
|
---|
91 | } DOCHOSTUIDBLCLK;
|
---|
92 |
|
---|
93 | typedef enum tagDOCHOSTUIFLAG {
|
---|
94 | DOCHOSTUIFLAG_DIALOG = 0x1,
|
---|
95 | DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x2,
|
---|
96 | DOCHOSTUIFLAG_NO3DBORDER = 0x4,
|
---|
97 | DOCHOSTUIFLAG_SCROLL_NO = 0x8,
|
---|
98 | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x10,
|
---|
99 | DOCHOSTUIFLAG_OPENNEWWIN = 0x20,
|
---|
100 | DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x40,
|
---|
101 | DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x80,
|
---|
102 | DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x100,
|
---|
103 | DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x200,
|
---|
104 | DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x400,
|
---|
105 | DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x800,
|
---|
106 | DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x1000,
|
---|
107 | DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x2000,
|
---|
108 | DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x4000,
|
---|
109 | DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x10000,
|
---|
110 | DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x20000,
|
---|
111 | DOCHOSTUIFLAG_THEME = 0x40000,
|
---|
112 | DOCHOSTUIFLAG_NOTHEME = 0x80000,
|
---|
113 | DOCHOSTUIFLAG_NOPICS = 0x100000,
|
---|
114 | DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x200000,
|
---|
115 | DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x400000,
|
---|
116 | DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK= 0x800000,
|
---|
117 | DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x1000000,
|
---|
118 | DOCHOSTUIFLAG_HOST_NAVIGATES = 0x2000000,
|
---|
119 | DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION = 0x4000000,
|
---|
120 | DOCHOSTUIFLAG_USE_WINDOWLESS_SELECTCONTROL = 0x8000000,
|
---|
121 | DOCHOSTUIFLAG_USE_WINDOWED_SELECTCONTROL = 0x10000000,
|
---|
122 | DOCHOSTUIFLAG_ENABLE_ACTIVEX_INACTIVATE_MODE = 0x20000000,
|
---|
123 | DOCHOSTUIFLAG_DPI_AWARE = 0x40000000
|
---|
124 | } DOCHOSTUIFLAG;
|
---|
125 |
|
---|
126 | cpp_quote("#define DOCHOSTUIFLAG_BROWSER (DOCHOSTUIFLAG_DISABLE_HELP_MENU | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE)")
|
---|
127 |
|
---|
128 | typedef enum tagDOCHOSTUITYPE {
|
---|
129 | DOCHOSTUITYPE_BROWSE = 0,
|
---|
130 | DOCHOSTUITYPE_AUTHOR = 1
|
---|
131 | } DOCHOSTUITYPE;
|
---|
132 |
|
---|
133 | typedef struct _DOCHOSTUIINFO {
|
---|
134 | ULONG cbSize;
|
---|
135 | DWORD dwFlags;
|
---|
136 | DWORD dwDoubleClick;
|
---|
137 | OLECHAR *pchHostCss;
|
---|
138 | OLECHAR *pchHostNS;
|
---|
139 | } DOCHOSTUIINFO;
|
---|
140 |
|
---|
141 | [object, local, uuid (53dec138-A51E-11d2-861e-00c04fa35c89), pointer_default (unique)]
|
---|
142 | interface IHostDialogHelper : IUnknown {
|
---|
143 | HRESULT ShowHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn,[in] WCHAR *pchOptions, VARIANT *pvarArgOut, IUnknown *punkHost);
|
---|
144 | };
|
---|
145 |
|
---|
146 | [uuid (429af92c-A51F-11d2-861e-00c04fa35c89)]
|
---|
147 | coclass HostDialogHelper {
|
---|
148 | [default] interface IHostDialogHelper;
|
---|
149 | };
|
---|
150 |
|
---|
151 | [object, local, uuid (bd3f23c0-d43e-11cf-893b-00aa00bdce1a), pointer_default (unique)]
|
---|
152 | interface IDocHostUIHandler : IUnknown {
|
---|
153 | HRESULT ShowContextMenu ([in] DWORD dwID,[in] POINT *ppt,[in] IUnknown *pcmdtReserved,[in] IDispatch *pdispReserved);
|
---|
154 | HRESULT GetHostInfo ([in, out] DOCHOSTUIINFO *pInfo);
|
---|
155 | HRESULT ShowUI ([in] DWORD dwID,[in] IOleInPlaceActiveObject *pActiveObject,[in] IOleCommandTarget *pCommandTarget,[in] IOleInPlaceFrame *pFrame,[in] IOleInPlaceUIWindow *pDoc);
|
---|
156 | HRESULT HideUI ();
|
---|
157 | HRESULT UpdateUI ();
|
---|
158 | HRESULT EnableModeless ([in] BOOL fEnable);
|
---|
159 | HRESULT OnDocWindowActivate ([in] BOOL fActivate);
|
---|
160 | HRESULT OnFrameWindowActivate ([in] BOOL fActivate);
|
---|
161 | HRESULT ResizeBorder ([in] LPCRECT prcBorder,[in] IOleInPlaceUIWindow *pUIWindow,[in] BOOL fRameWindow);
|
---|
162 | HRESULT TranslateAccelerator ([in] LPMSG lpMsg,[in] const GUID *pguidCmdGroup,[in] DWORD nCmdID);
|
---|
163 | HRESULT GetOptionKeyPath ([out] LPOLESTR *pchKey,[in] DWORD dw);
|
---|
164 | HRESULT GetDropTarget ([in] IDropTarget *pDropTarget,[out] IDropTarget **ppDropTarget);
|
---|
165 | HRESULT GetExternal ([out] IDispatch **ppDispatch);
|
---|
166 | HRESULT TranslateUrl ([in]DWORD dwTranslate,[in] LPWSTR pchURLIn,[out] LPWSTR *ppchURLOut);
|
---|
167 | HRESULT FilterDataObject ([in] IDataObject *pDO,[out] IDataObject **ppDORet);
|
---|
168 | };
|
---|
169 |
|
---|
170 | [object, local, uuid (3050f6d0-98b5-11cf-bb82-00aa00bdce0b), pointer_default (unique)]
|
---|
171 | interface IDocHostUIHandler2 : IDocHostUIHandler {
|
---|
172 | HRESULT GetOverrideKeyPath ([out] LPOLESTR *pchKey,[in] DWORD dw);
|
---|
173 | };
|
---|
174 |
|
---|
175 | [object, local, uuid (3050f3f0-98b5-11cf-bb82-00aa00bdce0b), pointer_default (unique)]
|
---|
176 | interface ICustomDoc : IUnknown {
|
---|
177 | HRESULT SetUIHandler ([in] IDocHostUIHandler *pUIHandler);
|
---|
178 | };
|
---|
179 |
|
---|
180 | [object, local, uuid (c4d244b0-d43e-11cf-893b-00aa00bdce1a), pointer_default (unique)]
|
---|
181 | interface IDocHostShowUI : IUnknown {
|
---|
182 | HRESULT ShowMessage ([in] HWND hwnd,[in] LPOLESTR lpstrText,[in] LPOLESTR lpstrCaption,[in] DWORD dwType,[in] LPOLESTR lpstrHelpFile,[in] DWORD dwHelpContext,[out] LRESULT *plResult);
|
---|
183 | HRESULT ShowHelp ([in] HWND hwnd,[in] LPOLESTR pszHelpFile,[in] UINT uCommand,[in] DWORD dwData,[in] POINT ptMouse,[out] IDispatch *pDispatchObjectHit);
|
---|
184 | };
|
---|
185 |
|
---|
186 | cpp_quote("#define IClassFactory3 IClassFactoryEx")
|
---|
187 | cpp_quote("#define IID_IClassFactory3 IID_IClassFactoryEx")
|
---|
188 | cpp_quote("#define SID_SHTMLOMWindowServices IID_IHTMLOMWindowServices")
|
---|
189 |
|
---|
190 | [object, local, uuid (342d1ea0-AE25-11d1-89c5-006008c3fbfc), pointer_default (unique)]
|
---|
191 | interface IClassFactoryEx : IClassFactory {
|
---|
192 | HRESULT CreateInstanceWithContext (IUnknown *punkContext, IUnknown *punkOuter, REFIID riid,[out] void **ppv);
|
---|
193 | };
|
---|
194 |
|
---|
195 | [object, uuid (3050f5fc-98b5-11cf-bb82-00aa00bdce0b), pointer_default (unique)]
|
---|
196 | interface IHTMLOMWindowServices : IUnknown {
|
---|
197 | HRESULT moveTo ([in] LONG x,[in] LONG y);
|
---|
198 | HRESULT moveBy ([in] LONG x,[in] LONG y);
|
---|
199 | HRESULT resizeTo ([in] LONG x,[in] LONG y);
|
---|
200 | HRESULT resizeBy ([in] LONG x,[in] LONG y);
|
---|
201 | };
|
---|
202 |
|
---|
203 | cpp_quote("#endif")
|
---|
204 | cpp_quote("#endif")
|
---|