source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/mshtmhst.idl

Last change on this file was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 9.4 KB
Line 
1cpp_quote("/**")
2cpp_quote(" * This file is part of the mingw-w64 runtime package.")
3cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
4cpp_quote(" */")
5cpp_quote("")
6
7import "ocidl.idl";
8import "objidl.idl";
9import "oleidl.idl";
10import "oaidl.idl";
11import "docobj.idl";
12
13cpp_quote("#include <winapifamily.h>")
14cpp_quote("")
15cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
16cpp_quote("#ifndef MSHTMHST_H")
17cpp_quote("#define MSHTMHST_H")
18
19cpp_quote("#define CONTEXT_MENU_DEFAULT 0")
20cpp_quote("#define CONTEXT_MENU_IMAGE 1")
21cpp_quote("#define CONTEXT_MENU_CONTROL 2")
22cpp_quote("#define CONTEXT_MENU_TABLE 3")
23cpp_quote("#define CONTEXT_MENU_TEXTSELECT 4")
24cpp_quote("#define CONTEXT_MENU_ANCHOR 5")
25cpp_quote("#define CONTEXT_MENU_UNKNOWN 6")
26cpp_quote("#define CONTEXT_MENU_IMGDYNSRC 7")
27cpp_quote("#define CONTEXT_MENU_DEBUG 8")
28cpp_quote("#define CONTEXT_MENU_VSCROLL 9")
29cpp_quote("#define CONTEXT_MENU_HSCROLL 10")
30cpp_quote("#define CONTEXT_MENU_MEDIA 11")
31cpp_quote("")
32cpp_quote("#define MENUEXT_SHOWDIALOG 0x1")
33cpp_quote("")
34cpp_quote("#define CMDID_SCRIPTSITE_URL 0")
35cpp_quote("#define CMDID_SCRIPTSITE_HTMLDLGTRUST 1")
36cpp_quote("#define CMDID_SCRIPTSITE_SECSTATE 2")
37cpp_quote("#define CMDID_SCRIPTSITE_SID 3")
38cpp_quote("#define CMDID_SCRIPTSITE_TRUSTEDDOC 4")
39cpp_quote("#define CMDID_SCRIPTSITE_SECURITY_WINDOW 5")
40cpp_quote("#define CMDID_SCRIPTSITE_NAMESPACE 6")
41cpp_quote("#define CMDID_SCRIPTSITE_IURI 7")
42cpp_quote("#define CMDID_HOSTCONTEXT_URL 8")
43cpp_quote("#define CMDID_SCRIPTSITE_ALLOWRECOVERY 9")
44cpp_quote("")
45cpp_quote("#define HTMLDLG_NOUI 0x10")
46cpp_quote("#define HTMLDLG_MODAL 0x20")
47cpp_quote("#define HTMLDLG_MODELESS 0x40")
48cpp_quote("#define HTMLDLG_PRINT_TEMPLATE 0x80")
49cpp_quote("#define HTMLDLG_VERIFY 0x100")
50cpp_quote("#define HTMLDLG_ALLOW_UNKNOWN_THREAD 0x200")
51cpp_quote("")
52cpp_quote("#define PRINT_DONTBOTHERUSER 0x1")
53cpp_quote("#define PRINT_WAITFORCOMPLETION 0x2")
54
55cpp_quote("#define CMDSETID_Forms3 CGID_MSHTML")
56cpp_quote("#define SZ_HTML_CLIENTSITE_OBJECTPARAM L\"{d4db6850-5385-11d0-89e9-00a0c90a90ac}\"")
57
58cpp_quote("EXTERN_C const GUID CGID_ScriptSite;")
59cpp_quote("EXTERN_C const GUID CGID_MSHTML;")
60cpp_quote("EXTERN_C const GUID CLSID_HostDialogHelper;")
61
62cpp_quote("DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);")
63
64cpp_quote("#ifndef __IHTMLWindow2_FWD_DEFINED__")
65cpp_quote("#define __IHTMLWindow2_FWD_DEFINED__")
66cpp_quote("typedef interface IHTMLWindow2 IHTMLWindow2;")
67cpp_quote("#endif")
68cpp_quote("")
69cpp_quote("typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, WCHAR *pchOptions, VARIANT *pvArgOut);")
70cpp_quote("typedef HRESULT STDAPICALLTYPE SHOWHTMLDIALOGEXFN (HWND hwndParent, IMoniker *pmk, DWORD dwDialogFlags, VARIANT *pvarArgIn, WCHAR *pchOptions, VARIANT *pvArgOut);")
71cpp_quote("typedef HRESULT STDAPICALLTYPE SHOWMODELESSHTMLDIALOGFN (HWND hwndParent, IMoniker *pmk, VARIANT *pvarArgIn, VARIANT *pvarOptions, IHTMLWindow2 **ppWindow);")
72cpp_quote("typedef HRESULT STDAPICALLTYPE IEREGISTERXMLNSFN (LPCWSTR lpszURI, GUID clsid, BOOL fMachine);")
73cpp_quote("typedef HRESULT STDAPICALLTYPE IEISXMLNSREGISTEREDFN (LPCWSTR lpszURI, GUID *pCLSID);")
74cpp_quote("")
75cpp_quote("STDAPI ShowHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, LPWSTR pchOptions, VARIANT *pvarArgOut);")
76cpp_quote("STDAPI ShowHTMLDialogEx (HWND hwndParent, IMoniker *pMk, DWORD dwDialogFlags, VARIANT *pvarArgIn, LPWSTR pchOptions, VARIANT *pvarArgOut);")
77cpp_quote("STDAPI ShowModelessHTMLDialog (HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, VARIANT *pvarOptions, IHTMLWindow2 **ppWindow);")
78cpp_quote("#if !defined (_ARM_) && !defined (__arm__)")
79cpp_quote("STDAPI RunHTMLApplication (HINSTANCE hinst, HINSTANCE hPrevInst, LPSTR szCmdLine, int nCmdShow);")
80cpp_quote("#endif")
81cpp_quote("STDAPI CreateHTMLPropertyPage (IMoniker *pmk, IPropertyPage **ppPP);")
82cpp_quote("STDAPI EarlyStartDisplaySystem (void);")
83cpp_quote("STDAPI IERegisterXMLNS (LPCWSTR lpszURI, GUID clsid, BOOL fMachine);")
84cpp_quote("STDAPI IEIsXMLNSRegistered (LPCWSTR lpszURI, GUID *pCLSID);")
85cpp_quote("STDAPI GetColorValueFromString (LPCWSTR lpszColor, BOOL fStrictCSS1, BOOL fIsStandardsCSS, COLORREF *pColor);")
86
87typedef enum tagDOCHOSTUIDBLCLK {
88 DOCHOSTUIDBLCLK_DEFAULT = 0,
89 DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
90 DOCHOSTUIDBLCLK_SHOWCODE = 2
91} DOCHOSTUIDBLCLK;
92
93typedef 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
126cpp_quote("#define DOCHOSTUIFLAG_BROWSER (DOCHOSTUIFLAG_DISABLE_HELP_MENU | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE)")
127
128typedef enum tagDOCHOSTUITYPE {
129 DOCHOSTUITYPE_BROWSE = 0,
130 DOCHOSTUITYPE_AUTHOR = 1
131} DOCHOSTUITYPE;
132
133typedef 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)]
142interface 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)]
147coclass HostDialogHelper {
148 [default] interface IHostDialogHelper;
149};
150
151[object, local, uuid (bd3f23c0-d43e-11cf-893b-00aa00bdce1a), pointer_default (unique)]
152interface 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)]
171interface 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)]
176interface ICustomDoc : IUnknown {
177 HRESULT SetUIHandler ([in] IDocHostUIHandler *pUIHandler);
178};
179
180[object, local, uuid (c4d244b0-d43e-11cf-893b-00aa00bdce1a), pointer_default (unique)]
181interface 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
186cpp_quote("#define IClassFactory3 IClassFactoryEx")
187cpp_quote("#define IID_IClassFactory3 IID_IClassFactoryEx")
188cpp_quote("#define SID_SHTMLOMWindowServices IID_IHTMLOMWindowServices")
189
190[object, local, uuid (342d1ea0-AE25-11d1-89c5-006008c3fbfc), pointer_default (unique)]
191interface 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)]
196interface 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
203cpp_quote("#endif")
204cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.