Added missing prototypes for StrRetToBuf(A|W).
[wine] / dlls / ole32 / ole2stubs.c
1 /*
2  * Temporary place for ole2 stubs.
3  *
4  * Copyright (C) 1999 Corel Corporation
5  */
6
7 #include "ole2.h"
8 #include "winuser.h"
9 #include "debugtools.h"
10
11 DEFAULT_DEBUG_CHANNEL(ole)
12
13 /******************************************************************************
14  *               OleCreateFromData        [OLE32.92]
15  */
16 HRESULT WINAPI OleCreateFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
17                 DWORD renderopt, LPFORMATETC pFormatEtc,
18                 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
19                 LPVOID* ppvObj)
20 {
21     FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n", pSrcDataObj,riid,renderopt,pFormatEtc,pClientSite,pStg,ppvObj);
22     return DV_E_FORMATETC;
23 }
24
25
26 /******************************************************************************
27  *               OleCreateLinkToFile        [OLE32.96]
28  */
29 HRESULT WINAPI  OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
30                         DWORD renderopt, LPFORMATETC lpFormatEtc,
31                         LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
32 {
33     FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
34     return S_OK;
35 }
36
37
38 /******************************************************************************
39  *              OleDuplicateData        [OLE32.102]
40  */
41 HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat,
42                                   UINT uiFlags)
43 {
44     FIXME("(%x,%x,%x), stub!\n", hSrc, cfFormat, uiFlags);
45     return S_OK;
46 }
47
48  
49 /***********************************************************************
50  *               WriteFmtUserTypeStg (OLE32.160)
51  */
52 HRESULT WINAPI WriteFmtUserTypeStg(
53           LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType)
54 {
55     FIXME("(%p,%x,%p) stub!\n",pstg,cf,lpszUserType);
56     return S_OK;
57 }
58
59 /***********************************************************************
60  *             OleTranslateAccelerator [OLE32.130]
61  */
62 HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame,
63                    LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg)
64 {
65     FIXME("(%p,%p,%p),stub!\n", lpFrame, lpFrameInfo, lpmsg);
66     return S_OK;
67 }
68
69 /******************************************************************************
70  *              CoTreatAsClass        [OLE32.46]
71  */
72 HRESULT WINAPI CoTreatAsClass(REFCLSID clsidOld, REFCLSID clsidNew)
73 {
74   FIXME("(%p,%p), stub!\n", clsidOld, clsidNew);
75   return S_OK;
76 }
77
78
79 /******************************************************************************
80  *              IsAccelerator        [OLE32.75]
81  */
82 BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* lpwCmd)
83 {
84   FIXME("(%x,%i,%p,%p), stub!\n", hAccel, cAccelEntries, lpMsg, lpwCmd);
85   return TRUE;
86 }
87
88 /******************************************************************************
89  *              SetConvertStg        [OLE32.142]
90  */
91 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
92 {
93   FIXME("(%p,%x), stub!\n", pStg, fConvert);
94   return S_OK;
95 }
96
97 /******************************************************************************
98  *              OleCreate        [OLE32.80]
99  */
100 HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
101                 LPSTORAGE pStg, LPVOID* ppvObj)
102 {
103   FIXME("(not shown), stub!\n");
104   return S_OK;
105 }
106
107 /******************************************************************************
108  *              OleCreateLink        [OLE32.94]
109  */
110 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
111                 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
112 {
113   FIXME("(not shown), stub!\n");
114   return S_OK;
115 }
116
117 /******************************************************************************
118  *              OleCreateFromFile        [OLE32.93]
119  */
120 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
121             DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
122 {
123   FIXME("(not shown), stub!\n");
124   return S_OK;
125 }
126
127 /******************************************************************************
128  *              OleLockRunning        [OLE32.114]
129  */
130 HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses) 
131 {
132   FIXME("(%p,%x,%x), stub!\n", pUnknown, fLock, fLastUnlockCloses);
133   return S_OK;
134 }
135
136 /******************************************************************************
137  *              OleGetIconOfClass        [OLE32.106]
138  */
139 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
140 {
141   FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
142   return S_OK;
143 }
144
145 /******************************************************************************
146  *              OleQueryCreateFromData        [OLE32.117]
147  */
148 HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject)
149 {
150   FIXME("(%p), stub!\n", pSrcDataObject);
151   return S_FALSE;
152 }
153
154 /******************************************************************************
155  *              ReadFmtUserTypeStg        [OLE32.136]
156  */
157 HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType)
158 {
159   FIXME("(%p,%p,%p), stub!\n", pstg, pcf, lplpszUserType);
160   return S_OK;
161 }
162
163 /******************************************************************************
164  *              OleCreateStaticFromData        [OLE32.98]
165  */
166 HRESULT     WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
167                 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
168                 LPSTORAGE pStg, LPVOID* ppvObj)
169 {
170   FIXME("(not shown), stub!\n");
171   return S_OK;
172 }
173
174 /******************************************************************************
175  *              OleRun        [OLE32.123]
176  */
177 HRESULT WINAPI OleRun(LPUNKNOWN pUnknown)
178 {
179   FIXME("(%p), stub!\n", pUnknown);
180   return S_OK;
181 }
182
183 /******************************************************************************
184  *              OleCreateLinkFromData        [OLE32.95]
185  */
186
187 HRESULT WINAPI  OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
188                 DWORD renderopt, LPFORMATETC pFormatEtc,
189                 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
190                 LPVOID* ppvObj)
191 {
192   FIXME("(not shown), stub!\n");
193   return S_OK;
194 }
195
196 /******************************************************************************
197  *              OleIsRunning        [OLE32.111]
198  */
199 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject)
200 {
201   FIXME("(%p), stub!\n", pObject);
202   return TRUE;
203 }
204
205 /***********************************************************************
206  *           OleRegEnumVerbs    [OLE32.120]
207  */
208 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
209 {
210     FIXME("(%p,%p), stub!\n", clsid, ppenum);
211     return S_OK;
212 }
213
214 /***********************************************************************
215  *           OleRegEnumFormatEtc    [OLE32.119]
216  */
217 HRESULT     WINAPI OleRegEnumFormatEtc (
218   REFCLSID clsid, 
219   DWORD    dwDirection,
220   LPENUMFORMATETC* ppenumFormatetc)
221 {
222     FIXME("(%p, %ld, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
223
224     return S_OK;
225 }
226