ntdll: More compatible exception information for protection faults.
[wine/multimedia.git] / dlls / shdocvw / shdocvw.h
blob735c1c469b2eed4e60cf639e13e1ae2a1526c0ac
1 /*
2 * Header includes for shdocvw.dll
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_SHDOCVW_H
22 #define __WINE_SHDOCVW_H
24 #define COM_NO_WINDOWS_H
25 #define COBJMACROS
27 #include <stdarg.h>
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "winuser.h"
34 #include "ole2.h"
35 #include "olectl.h"
36 #include "shlobj.h"
37 #include "exdisp.h"
38 #include "mshtmhst.h"
40 /**********************************************************************
41 * IClassFactory declaration for SHDOCVW.DLL
43 typedef struct
45 /* IUnknown fields */
46 const IClassFactoryVtbl *lpVtbl;
47 LONG ref;
48 } IClassFactoryImpl;
50 extern IClassFactoryImpl SHDOCVW_ClassFactory;
52 /**********************************************************************
53 * Shell Instance Objects
55 extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
56 REFIID riid, LPVOID *ppvClassObj);
58 /**********************************************************************
59 * WebBrowser declaration for SHDOCVW.DLL
62 typedef struct ConnectionPoint ConnectionPoint;
64 typedef struct {
65 /* Interfaces available via WebBrowser object */
67 const IWebBrowser2Vtbl *lpWebBrowser2Vtbl;
68 const IOleObjectVtbl *lpOleObjectVtbl;
69 const IOleInPlaceObjectVtbl *lpOleInPlaceObjectVtbl;
70 const IOleControlVtbl *lpOleControlVtbl;
71 const IPersistStorageVtbl *lpPersistStorageVtbl;
72 const IPersistStreamInitVtbl *lpPersistStreamInitVtbl;
73 const IProvideClassInfo2Vtbl *lpProvideClassInfoVtbl;
74 const IQuickActivateVtbl *lpQuickActivateVtbl;
75 const IConnectionPointContainerVtbl *lpConnectionPointContainerVtbl;
76 const IViewObject2Vtbl *lpViewObjectVtbl;
77 const IOleInPlaceActiveObjectVtbl *lpOleInPlaceActiveObjectVtbl;
79 /* Interfaces available for embeded document */
81 const IOleClientSiteVtbl *lpOleClientSiteVtbl;
82 const IOleInPlaceSiteVtbl *lpOleInPlaceSiteVtbl;
83 const IDocHostUIHandler2Vtbl *lpDocHostUIHandlerVtbl;
84 const IOleDocumentSiteVtbl *lpOleDocumentSiteVtbl;
86 /* Interfaces of InPlaceFrame object */
88 const IOleInPlaceFrameVtbl *lpOleInPlaceFrameVtbl;
90 LONG ref;
92 IUnknown *document;
94 IOleClientSite *client;
95 IOleContainer *container;
96 IOleDocumentView *view;
98 LPOLESTR url;
100 /* window context */
102 HWND iphwnd;
103 HWND frame_hwnd;
104 IOleInPlaceFrame *frame;
105 IOleInPlaceUIWindow *uiwindow;
106 RECT pos_rect;
107 RECT clip_rect;
108 OLEINPLACEFRAMEINFO frameinfo;
110 HWND doc_view_hwnd;
111 HWND shell_embedding_hwnd;
113 /* Connection points */
115 ConnectionPoint *cp_wbe2;
116 ConnectionPoint *cp_wbe;
117 ConnectionPoint *cp_pns;
118 } WebBrowser;
120 #define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
121 #define WEBBROWSER2(x) ((IWebBrowser2*) &(x)->lpWebBrowser2Vtbl)
122 #define OLEOBJ(x) ((IOleObject*) &(x)->lpOleObjectVtbl)
123 #define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectVtbl)
124 #define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
125 #define PERSTORAGE(x) ((IPersistStorage*) &(x)->lpPersistStorageVtbl)
126 #define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
127 #define CLASSINFO(x) ((IProvideClassInfo2*) &(x)->lpProvideClassInfoVtbl)
128 #define QUICKACT(x) ((IQuickActivate*) &(x)->lpQuickActivateVtbl)
129 #define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
130 #define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
131 #define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
132 #define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
134 #define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
135 #define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
136 #define DOCHOSTUI(x) ((IDocHostUIHandler*) &(x)->lpDocHostUIHandlerVtbl)
137 #define DOCHOSTUI2(x) ((IDocHostUIHandler2*) &(x)->lpDocHostUIHandlerVtbl)
138 #define DOCSITE(x) ((IOleDocumentSite*) &(x)->lpOleDocumentSiteVtbl)
140 #define INPLACEFRAME(x) ((IOleInPlaceFrame*) &(x)->lpOleInPlaceFrameVtbl)
142 void WebBrowser_OleObject_Init(WebBrowser*);
143 void WebBrowser_ViewObject_Init(WebBrowser*);
144 void WebBrowser_Persist_Init(WebBrowser*);
145 void WebBrowser_ClassInfo_Init(WebBrowser*);
146 void WebBrowser_Misc_Init(WebBrowser*);
147 void WebBrowser_Events_Init(WebBrowser*);
149 void WebBrowser_ClientSite_Init(WebBrowser*);
150 void WebBrowser_DocHost_Init(WebBrowser*);
152 void WebBrowser_Frame_Init(WebBrowser*);
154 void WebBrowser_OleObject_Destroy(WebBrowser*);
155 void WebBrowser_Events_Destroy(WebBrowser*);
156 void WebBrowser_ClientSite_Destroy(WebBrowser*);
158 HRESULT WebBrowser_Create(IUnknown*,REFIID,void**);
160 void create_doc_view_hwnd(WebBrowser *This);
161 void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
163 #define WB_WM_NAVIGATE2 (WM_USER+100)
165 #define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
167 /**********************************************************************
168 * Dll lifetime tracking declaration for shdocvw.dll
170 extern LONG SHDOCVW_refCount;
171 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
172 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
174 extern HINSTANCE shdocvw_hinstance;
176 #endif /* __WINE_SHDOCVW_H */