• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("")
6cpp_quote("#include <winapifamily.h>")
7cpp_quote("")
8cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
9cpp_quote("")
10
11import "ocidl.idl";
12import "objidl.idl";
13import "oleidl.idl";
14import "oaidl.idl";
15import "servprov.idl";
16
17cpp_quote("")
18interface IOleDocument;
19interface IOleDocumentSite;
20interface IOleDocumentView;
21interface IEnumOleDocumentViews;
22interface IContinueCallback;
23interface IPrint;
24interface IOleCommandTarget;
25interface IProtectedModeMenuServices;
26
27cpp_quote("")
28cpp_quote("#ifndef _LPOLEDOCUMENT_DEFINED")
29cpp_quote("#define _LPOLEDOCUMENT_DEFINED")
30[object, uuid (b722bcc5-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
31interface IOleDocument : IUnknown {
32  typedef [unique] IOleDocument *LPOLEDOCUMENT;
33cpp_quote("")
34  typedef enum {
35    DOCMISC_CANCREATEMULTIPLEVIEWS = 1,
36    DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2,
37    DOCMISC_CANTOPENEDIT = 4,
38    DOCMISC_NOFILESUPPORT = 8
39  } DOCMISC;
40cpp_quote("")
41  HRESULT CreateView ([in, unique] IOleInPlaceSite *pIPSite,[in, unique] IStream *pstm,[in] DWORD dwReserved,[out] IOleDocumentView **ppView);
42  HRESULT GetDocMiscStatus ([out] DWORD *pdwStatus);
43  HRESULT EnumViews ([out] IEnumOleDocumentViews **ppEnum,[out] IOleDocumentView **ppView);
44}
45cpp_quote("#endif")
46cpp_quote("")
47cpp_quote("#ifndef _LPOLEDOCUMENTSITE_DEFINED")
48cpp_quote("#define _LPOLEDOCUMENTSITE_DEFINED")
49[object, uuid (b722bcc7-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
50interface IOleDocumentSite : IUnknown {
51  typedef [unique] IOleDocumentSite *LPOLEDOCUMENTSITE;
52cpp_quote("")
53  HRESULT ActivateMe ([in] IOleDocumentView *pViewToActivate);
54}
55cpp_quote("#endif")
56cpp_quote("")
57cpp_quote("#ifndef _LPOLEDOCUMENTVIEW_DEFINED")
58cpp_quote("#define _LPOLEDOCUMENTVIEW_DEFINED")
59[object, uuid (b722bcc6-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
60interface IOleDocumentView : IUnknown {
61  typedef [unique] IOleDocumentView *LPOLEDOCUMENTVIEW;
62cpp_quote("")
63  HRESULT SetInPlaceSite ([in, unique] IOleInPlaceSite *pIPSite);
64  HRESULT GetInPlaceSite ([out] IOleInPlaceSite **ppIPSite);
65  HRESULT GetDocument ([out] IUnknown **ppunk);
66  [input_sync] HRESULT SetRect ([in] LPRECT prcView);
67  HRESULT GetRect ([out] LPRECT prcView);
68  [input_sync] HRESULT SetRectComplex ([in, unique] LPRECT prcView,[in, unique] LPRECT prcHScroll,[in, unique] LPRECT prcVScroll,[in, unique] LPRECT prcSizeBox);
69  HRESULT Show ([in] BOOL fShow);
70  HRESULT UIActivate ([in] BOOL fUIActivate);
71  HRESULT Open (void);
72  HRESULT CloseView ([in] DWORD dwReserved);
73  HRESULT SaveViewState ([in] LPSTREAM pstm);
74  HRESULT ApplyViewState ([in] LPSTREAM pstm);
75  HRESULT Clone ([in] IOleInPlaceSite *pIPSiteNew,[out] IOleDocumentView **ppViewNew);
76}
77cpp_quote("#endif")
78cpp_quote("")
79cpp_quote("#ifndef _LPENUMOLEDOCUMENTVIEWS_DEFINED")
80cpp_quote("#define _LPENUMOLEDOCUMENTVIEWS_DEFINED")
81[object, uuid (b722bcc8-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
82interface IEnumOleDocumentViews : IUnknown {
83  typedef [unique] IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS;
84cpp_quote("")
85  [local] HRESULT __stdcall Next ([in] ULONG cViews,[out] IOleDocumentView **rgpView,[out] ULONG *pcFetched);
86  [call_as (Next)] HRESULT __stdcall RemoteNext ([in] ULONG cViews,[out, size_is (cViews), length_is (*pcFetched)]IOleDocumentView **rgpView,[out] ULONG *pcFetched);
87  HRESULT Skip ([in] ULONG cViews);
88  HRESULT Reset ();
89  HRESULT Clone ([out] IEnumOleDocumentViews **ppEnum);
90}
91cpp_quote("#endif")
92cpp_quote("")
93cpp_quote("#ifndef _LPCONTINUECALLBACK_DEFINED")
94cpp_quote("#define _LPCONTINUECALLBACK_DEFINED")
95[object, uuid (b722bcca-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
96interface IContinueCallback : IUnknown {
97  typedef [unique] IContinueCallback *LPCONTINUECALLBACK;
98cpp_quote("")
99  HRESULT FContinue ();
100  HRESULT FContinuePrinting ([in] LONG nCntPrinted,[in] LONG nCurPage,[in, unique] wchar_t *pwszPrintStatus);
101}
102cpp_quote("#endif")
103cpp_quote("")
104cpp_quote("#ifndef _LPPRINT_DEFINED")
105cpp_quote("#define _LPPRINT_DEFINED")
106[object, uuid (b722bcc9-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
107interface IPrint : IUnknown {
108  typedef [unique] IPrint *LPPRINT;
109cpp_quote("")
110  typedef enum {
111    PRINTFLAG_MAYBOTHERUSER = 1,
112    PRINTFLAG_PROMPTUSER = 2,
113    PRINTFLAG_USERMAYCHANGEPRINTER = 4,
114    PRINTFLAG_RECOMPOSETODEVICE = 8,
115    PRINTFLAG_DONTACTUALLYPRINT = 16,
116    PRINTFLAG_FORCEPROPERTIES = 32,
117    PRINTFLAG_PRINTTOFILE = 64
118  } PRINTFLAG;
119cpp_quote("")
120  typedef struct tagPAGERANGE {
121    LONG nFromPage;
122    LONG nToPage;
123  } PAGERANGE;
124cpp_quote("")
125  typedef struct tagPAGESET {
126    ULONG cbStruct;
127    BOOL fOddPages;
128    BOOL fEvenPages;
129    ULONG cPageRange;
130    [size_is (cPageRange)]
131    PAGERANGE rgPages[];
132  } PAGESET;
133cpp_quote("")
134  cpp_quote("#define PAGESET_TOLASTPAGE   ((WORD)(-1L))")
135
136cpp_quote("")
137  HRESULT SetInitialPageNum ([in] LONG nFirstPage);
138  HRESULT GetPageInfo ([out] LONG *pnFirstPage,[out] LONG *pcPages);
139  [local] HRESULT __stdcall Print ([in] DWORD grfFlags,[in, out] DVTARGETDEVICE **pptd,[in, out] PAGESET **ppPageSet,[in, out, unique] STGMEDIUM *pstgmOptions,[in] IContinueCallback *pcallback,[in] LONG nFirstPage,[out] LONG *pcPagesPrinted,[out] LONG *pnLastPage);
140  [call_as (Print)] HRESULT __stdcall RemotePrint ([in] DWORD grfFlags,[in, out] DVTARGETDEVICE **pptd,[in, out] PAGESET **pppageset,[in, out, unique] RemSTGMEDIUM *pstgmOptions,[in] IContinueCallback *pcallback,[in] LONG nFirstPage,[out] LONG *pcPagesPrinted,[out] LONG *pnLastPage);
141}
142cpp_quote("#endif")
143cpp_quote("")
144cpp_quote("#ifndef _LPOLECOMMANDTARGET_DEFINED")
145cpp_quote("#define _LPOLECOMMANDTARGET_DEFINED")
146[object, uuid (b722bccb-4e68-101b-a2bc-00aa00404770), pointer_default (unique)]
147interface IOleCommandTarget : IUnknown {
148  typedef [unique] IOleCommandTarget *LPOLECOMMANDTARGET;
149cpp_quote("")
150  typedef enum OLECMDF {
151    OLECMDF_SUPPORTED = 0x00000001,
152    OLECMDF_ENABLED = 0x00000002,
153    OLECMDF_LATCHED = 0x00000004,
154    OLECMDF_NINCHED = 0x00000008,
155    OLECMDF_INVISIBLE = 0x00000010,
156    OLECMDF_DEFHIDEONCTXTMENU = 0x00000020
157  } OLECMDF;
158cpp_quote("")
159  typedef struct _tagOLECMD {
160    ULONG cmdID;
161    DWORD cmdf;
162  } OLECMD;
163cpp_quote("")
164  typedef struct _tagOLECMDTEXT {
165    DWORD cmdtextf;
166    ULONG cwActual;
167    ULONG cwBuf;
168    [size_is (cwBuf)]
169    wchar_t rgwz[];
170  } OLECMDTEXT;
171cpp_quote("")
172  typedef enum OLECMDTEXTF {
173    OLECMDTEXTF_NONE = 0,
174    OLECMDTEXTF_NAME = 1,
175    OLECMDTEXTF_STATUS = 2
176  } OLECMDTEXTF;
177cpp_quote("")
178  typedef enum OLECMDEXECOPT {
179    OLECMDEXECOPT_DODEFAULT = 0,
180    OLECMDEXECOPT_PROMPTUSER = 1,
181    OLECMDEXECOPT_DONTPROMPTUSER = 2,
182    OLECMDEXECOPT_SHOWHELP = 3
183  } OLECMDEXECOPT;
184cpp_quote("")
185  typedef enum OLECMDID {
186    OLECMDID_OPEN = 1,
187    OLECMDID_NEW = 2,
188    OLECMDID_SAVE = 3,
189    OLECMDID_SAVEAS = 4,
190    OLECMDID_SAVECOPYAS = 5,
191    OLECMDID_PRINT = 6,
192    OLECMDID_PRINTPREVIEW = 7,
193    OLECMDID_PAGESETUP = 8,
194    OLECMDID_SPELL = 9,
195    OLECMDID_PROPERTIES = 10,
196    OLECMDID_CUT = 11,
197    OLECMDID_COPY = 12,
198    OLECMDID_PASTE = 13,
199    OLECMDID_PASTESPECIAL = 14,
200    OLECMDID_UNDO = 15,
201    OLECMDID_REDO = 16,
202    OLECMDID_SELECTALL = 17,
203    OLECMDID_CLEARSELECTION = 18,
204    OLECMDID_ZOOM = 19,
205    OLECMDID_GETZOOMRANGE = 20,
206    OLECMDID_UPDATECOMMANDS = 21,
207    OLECMDID_REFRESH = 22,
208    OLECMDID_STOP = 23,
209    OLECMDID_HIDETOOLBARS = 24,
210    OLECMDID_SETPROGRESSMAX = 25,
211    OLECMDID_SETPROGRESSPOS = 26,
212    OLECMDID_SETPROGRESSTEXT = 27,
213    OLECMDID_SETTITLE = 28,
214    OLECMDID_SETDOWNLOADSTATE = 29,
215    OLECMDID_STOPDOWNLOAD = 30,
216    OLECMDID_ONTOOLBARACTIVATED = 31,
217    OLECMDID_FIND = 32,
218    OLECMDID_DELETE = 33,
219    OLECMDID_HTTPEQUIV = 34,
220    OLECMDID_HTTPEQUIV_DONE = 35,
221    OLECMDID_ENABLE_INTERACTION = 36,
222    OLECMDID_ONUNLOAD = 37,
223    OLECMDID_PROPERTYBAG2 = 38,
224    OLECMDID_PREREFRESH = 39,
225    OLECMDID_SHOWSCRIPTERROR = 40,
226    OLECMDID_SHOWMESSAGE = 41,
227    OLECMDID_SHOWFIND = 42,
228    OLECMDID_SHOWPAGESETUP = 43,
229    OLECMDID_SHOWPRINT = 44,
230    OLECMDID_CLOSE = 45,
231    OLECMDID_ALLOWUILESSSAVEAS = 46,
232    OLECMDID_DONTDOWNLOADCSS = 47,
233    OLECMDID_UPDATEPAGESTATUS = 48,
234    OLECMDID_PRINT2 = 49,
235    OLECMDID_PRINTPREVIEW2 = 50,
236    OLECMDID_SETPRINTTEMPLATE = 51,
237    OLECMDID_GETPRINTTEMPLATE = 52,
238    OLECMDID_PAGEACTIONBLOCKED = 55,
239    OLECMDID_PAGEACTIONUIQUERY = 56,
240    OLECMDID_FOCUSVIEWCONTROLS = 57,
241    OLECMDID_FOCUSVIEWCONTROLSQUERY = 58,
242    OLECMDID_SHOWPAGEACTIONMENU = 59,
243    OLECMDID_ADDTRAVELENTRY = 60,
244    OLECMDID_UPDATETRAVELENTRY = 61,
245    OLECMDID_UPDATEBACKFORWARDSTATE = 62,
246    OLECMDID_OPTICAL_ZOOM = 63,
247    OLECMDID_OPTICAL_GETZOOMRANGE = 64,
248    OLECMDID_WINDOWSTATECHANGED = 65,
249    OLECMDID_ACTIVEXINSTALLSCOPE = 66,
250    OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67,
251    OLECMDID_SHOWTASKDLG = 68,
252    OLECMDID_POPSTATEEVENT = 69,
253    OLECMDID_VIEWPORT_MODE = 70,
254    OLECMDID_LAYOUT_VIEWPORT_WIDTH = 71,
255    OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM = 72,
256    OLECMDID_USER_OPTICAL_ZOOM = 73,
257    OLECMDID_PAGEAVAILABLE = 74,
258    OLECMDID_GETUSERSCALABLE = 75,
259    OLECMDID_UPDATE_CARET = 76,
260    OLECMDID_ENABLE_VISIBILITY = 77,
261    OLECMDID_MEDIA_PLAYBACK = 78
262  } OLECMDID;
263cpp_quote("")
264  typedef enum MEDIAPLAYBACK_STATE {
265    MEDIAPLAYBACK_RESUME = 0,
266    MEDIAPLAYBACK_PAUSE = 1
267  } MEDIAPLAYBACK_STATE;
268cpp_quote("")
269cpp_quote("#define OLECMDERR_E_FIRST (OLE_E_LAST + 1)")
270cpp_quote("#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)")
271cpp_quote("#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST + 1)")
272cpp_quote("#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST + 2)")
273cpp_quote("#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST + 3)")
274cpp_quote("#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST + 4)")
275cpp_quote("")
276cpp_quote("#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST")
277cpp_quote("#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED")
278cpp_quote("#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED")
279cpp_quote("#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP")
280cpp_quote("#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED")
281cpp_quote("#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP")
282cpp_quote("")
283cpp_quote("#define OLECMD_TASKDLGID_ONBEFOREUNLOAD            1")
284cpp_quote("")
285cpp_quote("#if NTDDI_VERSION >= NTDDI_WINXPSP2")
286cpp_quote("#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_HWND 0")
287cpp_quote("#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_X 1")
288cpp_quote("#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_Y 2")
289cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_PUBLISHER 0")
290cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_DISPLAYNAME 1")
291cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_CLSID 2")
292cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_INSTALLSCOPE 3")
293cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_SOURCEURL 4")
294cpp_quote("")
295cpp_quote("#define INSTALL_SCOPE_INVALID 0")
296cpp_quote("#define INSTALL_SCOPE_MACHINE 1")
297cpp_quote("#define INSTALL_SCOPE_USER 2")
298
299cpp_quote("")
300  typedef enum IGNOREMIME {
301    IGNOREMIME_PROMPT = 0x00000001,
302    IGNOREMIME_TEXT = 0x00000002
303  } IGNOREMIME;
304
305cpp_quote("")
306  typedef enum WPCSETTING {
307    WPCSETTING_LOGGING_ENABLED = 0x00000001,
308    WPCSETTING_FILEDOWNLOAD_BLOCKED = 0x00000002,
309  } WPCSETTING;
310cpp_quote("#endif")
311cpp_quote("")
312  [input_sync] HRESULT QueryStatus ([in, unique] const GUID *pguidCmdGroup,[in] ULONG cCmds,[size_is (cCmds)][in, out] OLECMD prgCmds[],[in, out, unique] OLECMDTEXT *pCmdText);
313  HRESULT Exec ([in, unique] const GUID *pguidCmdGroup,[in] DWORD nCmdID,[in] DWORD nCmdexecopt,[in, unique] VARIANT *pvaIn,[in, out, unique] VARIANT *pvaOut);
314}
315cpp_quote("#endif")
316
317cpp_quote("typedef enum {")
318cpp_quote("  OLECMDIDF_REFRESH_NORMAL = 0,")
319cpp_quote("  OLECMDIDF_REFRESH_IFEXPIRED = 1,")
320cpp_quote("  OLECMDIDF_REFRESH_CONTINUE = 2,")
321cpp_quote("  OLECMDIDF_REFRESH_COMPLETELY = 3,")
322cpp_quote("  OLECMDIDF_REFRESH_NO_CACHE = 4,")
323cpp_quote("  OLECMDIDF_REFRESH_RELOAD = 5,")
324cpp_quote("  OLECMDIDF_REFRESH_LEVELMASK = 0x00FF,")
325cpp_quote("  OLECMDIDF_REFRESH_CLEARUSERINPUT = 0x1000,")
326cpp_quote("#if NTDDI_VERSION >= NTDDI_WINXPSP2")
327cpp_quote("  OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,")
328cpp_quote("  OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000,")
329cpp_quote("  OLECMDIDF_REFRESH_SKIPBEFOREUNLOADEVENT = 0x8000,")
330cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_ACTIVEXINSTALL = 0x00010000,")
331cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_FILEDOWNLOAD = 0x00020000,")
332cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_LOCALMACHINE = 0x00040000,")
333cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW = 0x00080000,")
334cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00100000,")
335cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00200000,")
336cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00400000,")
337cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00800000,")
338cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x01000000,")
339cpp_quote("#else")
340cpp_quote("OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,")
341cpp_quote("OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000,")
342cpp_quote("#endif")
343cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_MIXEDCONTENT = 0x02000000,")
344cpp_quote("  OLECMDIDF_REFRESH_PAGEACTION_INVALID_CERT = 0x04000000")
345cpp_quote("} OLECMDID_REFRESHFLAG;")
346cpp_quote("")
347cpp_quote("typedef enum {")
348cpp_quote("  OLECMDIDF_PAGEACTION_FILEDOWNLOAD = 0x00000001,")
349cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEXINSTALL = 0x00000002,")
350cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEXTRUSTFAIL = 0x00000004,")
351cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEXUSERDISABLE = 0x00000008,")
352cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEXDISALLOW = 0x00000010,")
353cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEXUNSAFE = 0x00000020,")
354cpp_quote("  OLECMDIDF_PAGEACTION_POPUPWINDOW = 0x00000040,")
355cpp_quote("  OLECMDIDF_PAGEACTION_LOCALMACHINE = 0x00000080,")
356cpp_quote("  OLECMDIDF_PAGEACTION_MIMETEXTPLAIN = 0x00000100,")
357cpp_quote("  OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE = 0x00000200,")
358cpp_quote("  OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXINSTALL = 0x00000200,")
359cpp_quote("  OLECMDIDF_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00000400,")
360cpp_quote("  OLECMDIDF_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00000800,")
361cpp_quote("  OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00001000,")
362cpp_quote("  OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00002000,")
363cpp_quote("  OLECMDIDF_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x00004000,")
364cpp_quote("  OLECMDIDF_PAGEACTION_PROTLOCKDOWNDENY = 0x00008000,")
365cpp_quote("  OLECMDIDF_PAGEACTION_POPUPALLOWED = 0x00010000,")
366cpp_quote("  OLECMDIDF_PAGEACTION_SCRIPTPROMPT = 0x00020000,")
367cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEXUSERAPPROVAL = 0x00040000,")
368cpp_quote("  OLECMDIDF_PAGEACTION_MIXEDCONTENT = 0x00080000,")
369cpp_quote("  OLECMDIDF_PAGEACTION_INVALID_CERT = 0x00100000,")
370cpp_quote("  OLECMDIDF_PAGEACTION_INTRANETZONEREQUEST = 0x00200000,")
371cpp_quote("  OLECMDIDF_PAGEACTION_XSSFILTERED = 0x00400000,")
372cpp_quote("  OLECMDIDF_PAGEACTION_SPOOFABLEIDNHOST = 0x00800000,")
373cpp_quote("  OLECMDIDF_PAGEACTION_ACTIVEX_EPM_INCOMPATIBLE = 0x01000000,")
374cpp_quote("  OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXUSERAPPROVAL = 0x02000000,")
375cpp_quote("  OLECMDIDF_PAGEACTION_WPCBLOCKED = 0x04000000,")
376cpp_quote("  OLECMDIDF_PAGEACTION_WPCBLOCKED_ACTIVEX = 0x08000000,")
377cpp_quote("  OLECMDIDF_PAGEACTION_EXTENSION_COMPAT_BLOCKED = 0x10000000,")
378cpp_quote("  OLECMDIDF_PAGEACTION_NORESETACTIVEX = 0x20000000,")
379cpp_quote("  OLECMDIDF_PAGEACTION_GENERIC_STATE = 0x40000000,")
380cpp_quote("  OLECMDIDF_PAGEACTION_RESET = (int) 0x80000000")
381cpp_quote("} OLECMDID_PAGEACTIONFLAG;")
382cpp_quote("")
383cpp_quote("typedef enum {")
384cpp_quote("  OLECMDIDF_BROWSERSTATE_EXTENSIONSOFF = 0x00000001,")
385cpp_quote("  OLECMDIDF_BROWSERSTATE_IESECURITY = 0x00000002,")
386cpp_quote("  OLECMDIDF_BROWSERSTATE_PROTECTEDMODE_OFF = 0x00000004,")
387cpp_quote("  OLECMDIDF_BROWSERSTATE_RESET = 0x00000008,")
388cpp_quote("  OLECMDIDF_BROWSERSTATE_REQUIRESACTIVEX = 0x00000010,")
389cpp_quote("} OLECMDID_BROWSERSTATEFLAG;")
390cpp_quote("")
391cpp_quote("typedef enum {")
392cpp_quote("  OLECMDIDF_OPTICAL_ZOOM_NOPERSIST = 0x00000001,")
393cpp_quote("  OLECMDIDF_OPTICAL_ZOOM_NOLAYOUT = 0x00000010")
394cpp_quote("} OLECMDID_OPTICAL_ZOOMFLAG;")
395cpp_quote("")
396cpp_quote("typedef enum {")
397cpp_quote("  PAGEACTION_UI_DEFAULT = 0,")
398cpp_quote("  PAGEACTION_UI_MODAL = 1,")
399cpp_quote("  PAGEACTION_UI_MODELESS = 2,")
400cpp_quote("  PAGEACTION_UI_SILENT = 3")
401cpp_quote("} PAGEACTION_UI;")
402cpp_quote("")
403cpp_quote("typedef enum {")
404cpp_quote("  OLECMDIDF_WINDOWSTATE_USERVISIBLE = 0x00000001,")
405cpp_quote("  OLECMDIDF_WINDOWSTATE_ENABLED = 0x00000002,")
406cpp_quote("  OLECMDIDF_WINDOWSTATE_USERVISIBLE_VALID = 0x00010000,")
407cpp_quote("  OLECMDIDF_WINDOWSTATE_ENABLED_VALID = 0x00020000")
408cpp_quote("} OLECMDID_WINDOWSTATE_FLAG;")
409cpp_quote("")
410cpp_quote("typedef enum {")
411cpp_quote("  OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH = 0x00000001,")
412cpp_quote("  OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM = 0x00000002,")
413cpp_quote("  OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH_VALID = 0x00010000,")
414cpp_quote("  OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM_VALID = 0x00020000")
415cpp_quote("} OLECMDID_VIEWPORT_MODE_FLAG;")
416cpp_quote("")
417cpp_quote("#define IMsoDocument IOleDocument")
418cpp_quote("#define IMsoDocumentSite IOleDocumentSite")
419cpp_quote("#define IMsoView IOleDocumentView")
420cpp_quote("#define IEnumMsoView IEnumOleDocumentViews")
421cpp_quote("#define IMsoCommandTarget IOleCommandTarget")
422cpp_quote("#define LPMSODOCUMENT LPOLEDOCUMENT")
423cpp_quote("#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE")
424cpp_quote("#define LPMSOVIEW LPOLEDOCUMENTVIEW")
425cpp_quote("#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS")
426cpp_quote("#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET")
427cpp_quote("#define MSOCMD OLECMD")
428cpp_quote("#define MSOCMDTEXT OLECMDTEXT")
429cpp_quote("#define IID_IMsoDocument IID_IOleDocument")
430cpp_quote("#define IID_IMsoDocumentSite IID_IOleDocumentSite")
431cpp_quote("#define IID_IMsoView IID_IOleDocumentView")
432cpp_quote("#define IID_IEnumMsoView IID_IEnumOleDocumentViews")
433cpp_quote("#define IID_IMsoCommandTarget IID_IOleCommandTarget")
434cpp_quote("#define MSOCMDF_SUPPORTED OLECMDF_SUPPORTED")
435cpp_quote("#define MSOCMDF_ENABLED OLECMDF_ENABLED")
436cpp_quote("#define MSOCMDF_LATCHED OLECMDF_LATCHED")
437cpp_quote("#define MSOCMDF_NINCHED OLECMDF_NINCHED")
438cpp_quote("#define MSOCMDTEXTF_NONE OLECMDTEXTF_NONE")
439cpp_quote("#define MSOCMDTEXTF_NAME OLECMDTEXTF_NAME")
440cpp_quote("#define MSOCMDTEXTF_STATUS OLECMDTEXTF_STATUS")
441cpp_quote("#define MSOCMDEXECOPT_DODEFAULT OLECMDEXECOPT_DODEFAULT")
442cpp_quote("#define MSOCMDEXECOPT_PROMPTUSER OLECMDEXECOPT_PROMPTUSER")
443cpp_quote("#define MSOCMDEXECOPT_DONTPROMPTUSER OLECMDEXECOPT_DONTPROMPTUSER")
444cpp_quote("#define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP")
445cpp_quote("#define MSOCMDID_OPEN OLECMDID_OPEN")
446cpp_quote("#define MSOCMDID_NEW OLECMDID_NEW")
447cpp_quote("#define MSOCMDID_SAVE OLECMDID_SAVE")
448cpp_quote("#define MSOCMDID_SAVEAS OLECMDID_SAVEAS")
449cpp_quote("#define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS")
450cpp_quote("#define MSOCMDID_PRINT OLECMDID_PRINT")
451cpp_quote("#define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW")
452cpp_quote("#define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP")
453cpp_quote("#define MSOCMDID_SPELL OLECMDID_SPELL")
454cpp_quote("#define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES")
455cpp_quote("#define MSOCMDID_CUT OLECMDID_CUT")
456cpp_quote("#define MSOCMDID_COPY OLECMDID_COPY")
457cpp_quote("#define MSOCMDID_PASTE OLECMDID_PASTE")
458cpp_quote("#define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL")
459cpp_quote("#define MSOCMDID_UNDO OLECMDID_UNDO")
460cpp_quote("#define MSOCMDID_REDO OLECMDID_REDO")
461cpp_quote("#define MSOCMDID_SELECTALL OLECMDID_SELECTALL")
462cpp_quote("#define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION")
463cpp_quote("#define MSOCMDID_ZOOM OLECMDID_ZOOM")
464cpp_quote("#define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE")
465cpp_quote("")
466cpp_quote("EXTERN_C const GUID SID_SContainerDispatch;")
467cpp_quote("")
468[object, uuid (41b68150-904c-4e17-A0BA-A438182E359D), pointer_default (unique)]
469interface IZoomEvents : IUnknown {
470  HRESULT OnZoomPercentChanged ([in] ULONG ulZoomPercent);
471};
472
473cpp_quote("")
474[object, uuid (d81f90a3-8156-44f7-ad28-5abb87003274), pointer_default (unique)]
475interface IProtectFocus : IUnknown {
476  HRESULT AllowFocusChange ([out] BOOL *pfAllow);
477};
478cpp_quote("")
479cpp_quote("#define SID_SProtectFocus  IID_IProtectFocus")
480cpp_quote("")
481cpp_quote("#ifndef _LPPROTECTEDMODEMENUSERVICES_DEFINED")
482cpp_quote("#define _LPPROTECTEDMODEMENUSERVICES_DEFINED")
483[object, uuid (73c105ee-9dff-4a07-b83c-7eff290c266e), pointer_default (unique)]
484interface IProtectedModeMenuServices : IUnknown {
485  HRESULT CreateMenu ([out] HMENU *phMenu);
486  HRESULT LoadMenu ([in, string] LPCWSTR pszModuleName,[in, string] LPCWSTR pszMenuName,[out] HMENU *phMenu);
487  HRESULT LoadMenuID ([in, string] LPCWSTR pszModuleName,[in] WORD wResourceID,[out] HMENU *phMenu);
488}
489cpp_quote("#endif")
490cpp_quote("#endif")
491
492cpp_quote("#if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY_DESKTOP_APP, WINAPI_PARTITION_APP)")
493cpp_quote("typedef struct tagPAGESET { } PAGESET;")
494cpp_quote("#endif")
495