annotate win32/exdisp.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * exdisp.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Translated from MinGW Windows headers *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 module win32.exdisp;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12 import win32.docobj, win32.oaidl, win32.ocidl;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 private import win32.basetyps, win32.windef, win32.wtypes;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16 enum BrowserNavConstants {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 navOpenInNewWindow = 0x01,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 navNoHistory = 0x02,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 navNoReadFromCache = 0x04,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 navNoWriteTocache = 0x08,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 navAllowAutosearch = 0x10,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 navBrowserBar = 0x20,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 navHyperLink = 0x40
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 interface IWebBrowser : public IDispatch {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 HRESULT GoBack();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 HRESULT GoForward();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 HRESULT GoHome();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 HRESULT GoSearch();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 HRESULT Navigate(BSTR, VARIANT*, VARIANT*, VARIANT*, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 HRESULT Refresh();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 HRESULT Refresh2(VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 HRESULT Stop();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 HRESULT get_Application(IDispatch* ppDisp);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 HRESULT get_Parent(IDispatch* ppDisp);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 HRESULT get_Container(IDispatch* ppDisp);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 HRESULT get_Document(IDispatch* ppDisp);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39 HRESULT get_TopLevelContainer(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 HRESULT get_Type(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41 HRESULT get_Left(LONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42 HRESULT put_Left(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43 HRESULT get_Top(LONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44 HRESULT put_Top(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 HRESULT get_Width(LONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46 HRESULT put_Width(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47 HRESULT get_Height(LONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 HRESULT put_Height(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 HRESULT get_LocationName(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50 HRESULT get_LocationURL(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 HRESULT get_Busy(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54 interface IWebBrowserApp : public IWebBrowser {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55 HRESULT Quit();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56 HRESULT ClientToWindow(int*, int*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57 HRESULT PutProperty(BSTR, VARIANT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58 HRESULT GetProperty(BSTR, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 HRESULT get_Name(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60 HRESULT get_HWND(LONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 HRESULT get_FullName(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62 HRESULT get_Path(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 HRESULT get_Visible(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64 HRESULT put_Visible(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 HRESULT get_StatusBar(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66 HRESULT put_StatusBar(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 HRESULT get_StatusText(BSTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68 HRESULT put_StatusText(BSTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 HRESULT get_ToolBar(int*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70 HRESULT put_ToolBar(int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 HRESULT get_MenuBar(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72 HRESULT put_MenuBar(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 HRESULT get_FullScreen(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74 HRESULT put_FullScreen(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 interface IWebBrowser2 : public IWebBrowserApp {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 HRESULT Navigate2(VARIANT*, VARIANT*, VARIANT*, VARIANT*, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 HRESULT QueryStatusWB(OLECMDID, OLECMDF*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80 HRESULT ExecWB(OLECMDID, OLECMDEXECOPT, VARIANT*, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 HRESULT ShowBrowserBar(VARIANT*, VARIANT*, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 HRESULT get_ReadyState(READYSTATE*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 HRESULT get_Offline(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 HRESULT put_Offline(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85 HRESULT get_Silent(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 HRESULT put_Silent(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87 HRESULT get_RegistaerAsBrowser(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 HRESULT put_RegisterAsBrowser(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89 HRESULT get_RegistaerAsDropTarget(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90 HRESULT put_RegisterAsDropTarget(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 HRESULT get_TheaterMode(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92 HRESULT put_TheaterMode(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 HRESULT get_AddressBar(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94 HRESULT put_AddressBar(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 HRESULT get_Resizable(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96 HRESULT put_Resizable(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99 interface DWebBrowserEvents2 : public IDispatch {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100 void StatusTextChange(BSTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 void ProgressChange(LONG, LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 void CommandStateChange(LONG, VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103 void DownloadBegin();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 void DownloadComplete();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105 void TitleChange(BSTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106 void PropertyChange(BSTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 void BeforeNavigate2(IDispatch pDisp, VARIANT*, VARIANT*, VARIANT*, VARIANT*, VARIANT*, VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 void NewWindow2(IDispatch* ppDisp, VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 void NavigateComplete(IDispatch pDisp, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110 void DocumentComplete(IDispatch pDisp, VARIANT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111 void OnQuit();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112 void OnVisible(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 void OnToolBar(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 void OnMenuBar(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 void OnStatusBar(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116 void OnFullScreen(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117 void OnTheaterMode(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118 void WindowSetResizable(VARIANT_BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119 void WindowSetLeft(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120 void WindowSetTop(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121 void WindowSetWidth(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 void WindowSetHeight(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 void WindowClosing(VARIANT_BOOL, VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 void ClientToHostWindow(LONG*, LONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125 void SetSecureLockIcon(LONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 void FileDownload(VARIANT_BOOL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127 }