Fix subclassing to support nested messages.
[wine] / dlls / ole32 / ole2stubs.c
1 /*
2  * Temporary place for ole2 stubs.
3  *
4  * Copyright (C) 1999 Corel Corporation
5  * Move these functions to dlls/ole32/ole2impl.c when you implement them.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #define NONAMELESSUNION
23 #define NONAMELESSSTRUCT
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29 #include "ole2.h"
30 #include "objidl.h"
31 #include "wine/debug.h"
32
33 WINE_DEFAULT_DEBUG_CHANNEL(ole);
34
35 /******************************************************************************
36  *               OleCreateLinkToFile        [OLE32.@]
37  */
38 HRESULT WINAPI  OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
39                         DWORD renderopt, LPFORMATETC lpFormatEtc,
40                         LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
41 {
42     FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
43     return E_NOTIMPL;
44 }
45
46
47 /******************************************************************************
48  *              OleDuplicateData        [OLE32.@]
49  */
50 HANDLE WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat,
51                                   UINT uiFlags)
52 {
53     FIXME("(%p,%x,%x), stub!\n", hSrc, cfFormat, uiFlags);
54     return NULL;
55 }
56
57
58 /******************************************************************************
59  *              SetConvertStg        [OLE32.@]
60  */
61 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
62 {
63   FIXME("(%p,%x), stub!\n", pStg, fConvert);
64   return E_NOTIMPL;
65 }
66
67 /******************************************************************************
68  *              OleCreateLink        [OLE32.@]
69  */
70 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
71                 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
72 {
73   FIXME("(not shown), stub!\n");
74   return E_NOTIMPL;
75 }
76
77 /******************************************************************************
78  *              OleCreateFromFile        [OLE32.@]
79  */
80 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
81             DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
82 {
83   FIXME("(not shown), stub!\n");
84   return E_NOTIMPL;
85 }
86
87
88 /******************************************************************************
89  *              OleGetIconOfClass        [OLE32.@]
90  */
91 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
92 {
93   FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
94   return NULL;
95 }
96
97
98 /******************************************************************************
99  *              OleCreateStaticFromData        [OLE32.@]
100  */
101 HRESULT     WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
102                 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
103                 LPSTORAGE pStg, LPVOID* ppvObj)
104 {
105   FIXME("(not shown), stub!\n");
106   return E_NOTIMPL;
107 }
108
109 /******************************************************************************
110  *              OleCreateLinkFromData        [OLE32.@]
111  */
112
113 HRESULT WINAPI  OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
114                 DWORD renderopt, LPFORMATETC pFormatEtc,
115                 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
116                 LPVOID* ppvObj)
117 {
118   FIXME("(not shown), stub!\n");
119   return E_NOTIMPL;
120 }
121
122 /******************************************************************************
123  *              OleIsRunning        [OLE32.@]
124  */
125 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject)
126 {
127   FIXME("(%p), stub!\n", pObject);
128   return TRUE;
129 }
130
131 /***********************************************************************
132  *           OleRegEnumVerbs    [OLE32.@]
133  */
134 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
135 {
136     FIXME("(%p,%p), stub!\n", clsid, ppenum);
137     return OLEOBJ_E_NOVERBS;
138 }
139
140 /***********************************************************************
141  *           OleRegEnumFormatEtc    [OLE32.@]
142  */
143 HRESULT     WINAPI OleRegEnumFormatEtc (
144   REFCLSID clsid,
145   DWORD    dwDirection,
146   LPENUMFORMATETC* ppenumFormatetc)
147 {
148     FIXME("(%p, %ld, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
149
150     return E_NOTIMPL;
151 }
152
153 /***********************************************************************
154  *           CoIsOle1Class                              [OLE32.@]
155  */
156 BOOL WINAPI CoIsOle1Class(REFCLSID clsid)
157 {
158   FIXME("%s\n", debugstr_guid(clsid));
159   return FALSE;
160 }
161
162 /***********************************************************************
163  *           DllGetClassObject                          [OLE2.4]
164  */
165 HRESULT WINAPI DllGetClassObject16(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
166 {
167   FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
168   return E_NOTIMPL;
169 }
170
171 /***********************************************************************
172  *           OleSetClipboard                            [OLE2.49]
173  */
174 HRESULT WINAPI OleSetClipboard16(IDataObject* pDataObj)
175 {
176   FIXME("(%p): stub\n", pDataObj);
177   return S_OK;
178 }
179
180 /***********************************************************************
181  *           OleGetClipboard                            [OLE2.50]
182  */
183 HRESULT WINAPI OleGetClipboard16(IDataObject** ppDataObj)
184 {
185   FIXME("(%p): stub\n", ppDataObj);
186   return E_NOTIMPL;
187 }