Removed inclusion of winnt.h because the porting layer shouldn't
[wine] / include / wine / obj_webbrowser.h
1 /*
2  * Defines the COM interfaces and APIs related to the IE Web browser control
3  *
4  * 2001 John R. Sheets (for CodeWeavers)
5  */
6
7 #ifndef __WINE_WINE_OBJ_WEBBROWSER_H
8 #define __WINE_WINE_OBJ_WEBBROWSER_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif /* defined(__cplusplus) */
13
14
15 /*****************************************************************************
16  * Predeclare the interfaces and class IDs
17  */
18 DEFINE_GUID(IID_IWebBrowser, 0xeab22ac1, 0x30c1, 0x11cf, 0xa7, 0xeb, 0x00, 0x00, 0xc0, 0x5b, 0xae, 0x0b);
19 typedef struct IWebBrowser IWebBrowser, *LPWEBBROWSER;
20
21 DEFINE_GUID(CLSID_WebBrowser, 0x8856f961, 0x340a, 0x11d0, 0xa9, 0x6b, 0x00, 0xc0, 0x4f, 0xd7, 0x05, 0xa2);
22
23 /*****************************************************************************
24  * IWebBrowser interface
25  */
26 #define ICOM_INTERFACE IWebBrowser
27 #define IWebBrowser_METHODS \
28         ICOM_METHOD(HRESULT,GoBack) \
29         ICOM_METHOD(HRESULT,GoForward) \
30         ICOM_METHOD(HRESULT,GoHome) \
31         ICOM_METHOD(HRESULT,GoSearch) \
32         ICOM_METHOD5(HRESULT,Navigate, BSTR*,URL, VARIANT*,Flags, VARIANT*,TargetFrameName, \
33                                        VARIANT*,PostData, VARIANT*,Headers) \
34         ICOM_METHOD(HRESULT,Refresh) \
35         ICOM_METHOD1(HRESULT,Refresh2, VARIANT*,Level) \
36         ICOM_METHOD(HRESULT,Stop) \
37         ICOM_METHOD1(HRESULT,get_Application, void**,ppDisp) \
38         ICOM_METHOD1(HRESULT,get_Parent, void**,ppDisp) \
39         ICOM_METHOD1(HRESULT,get_Container, void**,ppDisp) \
40         ICOM_METHOD1(HRESULT,get_Document, void**,ppDisp) \
41         ICOM_METHOD1(HRESULT,get_TopLevelContainer, VARIANT*,pBool) \
42         ICOM_METHOD1(HRESULT,get_Type, BSTR*,Type) \
43         ICOM_METHOD1(HRESULT,get_Left, long*,pl) \
44         ICOM_METHOD1(HRESULT,put_Left, long,Left) \
45         ICOM_METHOD1(HRESULT,get_Top, long*,pl) \
46         ICOM_METHOD1(HRESULT,put_Top, long,Top) \
47         ICOM_METHOD1(HRESULT,get_Width, long*,pl) \
48         ICOM_METHOD1(HRESULT,put_Width, long,Width) \
49         ICOM_METHOD1(HRESULT,get_Height, long*,pl) \
50         ICOM_METHOD1(HRESULT,put_Height, long,Height) \
51         ICOM_METHOD1(HRESULT,get_LocationName, BSTR*,LocationName) \
52         ICOM_METHOD1(HRESULT,get_LocationURL, BSTR*,LocationURL) \
53         ICOM_METHOD1(HRESULT,get_Busy, VARIANT*,pBool)
54 #define IWebBrowser_IMETHODS \
55         IDispatch_METHODS \
56         IWebBrowser_METHODS
57 ICOM_DEFINE(IWebBrowser,IDispatch)
58 #undef ICOM_INTERFACE
59
60 /*** IUnknown methods ***/
61 #define IWebBrowser_QueryInterface(p,a,b)      ICOM_CALL2(QueryInterface,p,a,b)
62 #define IWebBrowser_AddRef(p)                  ICOM_CALL (AddRef,p)
63 #define IWebBrowser_Release(p)                 ICOM_CALL (Release,p)
64 /*** IDispatch methods ***/
65 #define IWebBrowser_GetTypeInfoCount(p,a)      ICOM_CALL1 (GetTypeInfoCount,p,a)
66 #define IWebBrowser_GetTypeInfo(p,a,b,c)       ICOM_CALL3 (GetTypeInfo,p,a,b,c)
67 #define IWebBrowser_GetIDsOfNames(p,a,b,c,d,e) ICOM_CALL5 (GetIDsOfNames,p,a,b,c,d,e)
68 #define IWebBrowser_Invoke(p,a,b,c,d,e,f,g,h)  ICOM_CALL8 (Invoke,p,a,b,c,d,e,f,g,h)
69 /*** IWebBrowserContainer methods ***/
70 #define IWebBrowser_GoBack(p,a)      ICOM_CALL1(GoBack,p,a)
71 #define IWebBrowser_GoForward(p,a)      ICOM_CALL1(GoForward,p,a)
72 #define IWebBrowser_GoHome(p,a)      ICOM_CALL1(GoHome,p,a)
73 #define IWebBrowser_GoSearch(p,a)      ICOM_CALL1(GoSearch,p,a)
74 #define IWebBrowser_Navigate(p,a)      ICOM_CALL1(Navigate,p,a)
75 #define IWebBrowser_Refresh(p,a)      ICOM_CALL1(Refresh,p,a)
76 #define IWebBrowser_Refresh2(p,a)      ICOM_CALL1(Refresh2,p,a)
77 #define IWebBrowser_Stop(p,a)      ICOM_CALL1(Stop,p,a)
78 #define IWebBrowser_get_Application(p,a)      ICOM_CALL1(get_Application,p,a)
79 #define IWebBrowser_get_Parent(p,a)      ICOM_CALL1(get_Parent,p,a)
80 #define IWebBrowser_get_Container(p,a)      ICOM_CALL1(get_Container,p,a)
81 #define IWebBrowser_get_Document(p,a)      ICOM_CALL1(get_Document,p,a)
82 #define IWebBrowser_get_TopLevelContainer(p,a)      ICOM_CALL1(get_TopLevelContainer,p,a)
83 #define IWebBrowser_get_Type(p,a)      ICOM_CALL1(get_Type,p,a)
84 #define IWebBrowser_get_Left(p,a)      ICOM_CALL1(get_Left,p,a)
85 #define IWebBrowser_put_Left(p,a)      ICOM_CALL1(put_Left,p,a)
86 #define IWebBrowser_get_Top(p,a)      ICOM_CALL1(get_Top,p,a)
87 #define IWebBrowser_put_Top(p,a)      ICOM_CALL1(put_Top,p,a)
88 #define IWebBrowser_get_Width(p,a)      ICOM_CALL1(get_Width,p,a)
89 #define IWebBrowser_put_Width(p,a)      ICOM_CALL1(put_Width,p,a)
90 #define IWebBrowser_get_Height(p,a)      ICOM_CALL1(get_Height,p,a)
91 #define IWebBrowser_put_Height(p,a)      ICOM_CALL1(put_Height,p,a)
92 #define IWebBrowser_get_LocationName(p,a)      ICOM_CALL1(get_LocationName,p,a)
93 #define IWebBrowser_get_LocationURL(p,a)      ICOM_CALL1(get_LocationURL,p,a)
94 #define IWebBrowser_get_Busy(p,a)      ICOM_CALL1(get_Busy,p,a)
95
96 #ifdef __cplusplus
97 } /* extern "C" */
98 #endif /* defined(__cplusplus) */
99
100 #endif /* __WINE_WINE_OBJ_WEBBROWSER_H */