2 * Temporary place for ole2 stubs.
4 * Copyright (C) 1999 Corel Corporation
5 * Move these functions to dlls/ole32/ole2impl.c when you implement them.
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.
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.
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
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(ole
);
30 /******************************************************************************
31 * OleCreateLinkToFile [OLE32.96]
33 HRESULT WINAPI
OleCreateLinkToFile(LPCOLESTR lpszFileName
, REFIID riid
,
34 DWORD renderopt
, LPFORMATETC lpFormatEtc
,
35 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
)
37 FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n",lpszFileName
, riid
, renderopt
, lpFormatEtc
, pClientSite
, pStg
, ppvObj
);
42 /******************************************************************************
43 * OleDuplicateData [OLE32.102]
45 HRESULT WINAPI
OleDuplicateData(HANDLE hSrc
, CLIPFORMAT cfFormat
,
48 FIXME("(%x,%x,%x), stub!\n", hSrc
, cfFormat
, uiFlags
);
53 /***********************************************************************
54 * WriteFmtUserTypeStg (OLE32.160)
56 HRESULT WINAPI
WriteFmtUserTypeStg(
57 LPSTORAGE pstg
, CLIPFORMAT cf
, LPOLESTR lpszUserType
)
59 FIXME("(%p,%x,%s) stub!\n",pstg
,cf
,debugstr_w(lpszUserType
));
63 /***********************************************************************
64 * OleTranslateAccelerator [OLE32.130]
66 HRESULT WINAPI
OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame
,
67 LPOLEINPLACEFRAMEINFO lpFrameInfo
, LPMSG lpmsg
)
69 FIXME("(%p,%p,%p),stub!\n", lpFrame
, lpFrameInfo
, lpmsg
);
73 /******************************************************************************
74 * SetConvertStg [OLE32.142]
76 HRESULT WINAPI
SetConvertStg(LPSTORAGE pStg
, BOOL fConvert
)
78 FIXME("(%p,%x), stub!\n", pStg
, fConvert
);
82 /******************************************************************************
83 * OleCreate [OLE32.89]
86 HRESULT WINAPI
OleCreate(
90 LPFORMATETC pFormatEtc
,
91 LPOLECLIENTSITE pClientSite
,
96 IUnknown
* pUnk
= NULL
;
98 FIXME("\n\t%s\n\t%s stub!\n", debugstr_guid(rclsid
), debugstr_guid(riid
));
100 if (SUCCEEDED((hres
= CoCreateInstance(rclsid
, 0, CLSCTX_INPROC_SERVER
, riid
, (LPVOID
*)&pUnk
))))
105 IPersistStorage
* pPS
;
106 if (SUCCEEDED((hres
= IUnknown_QueryInterface( pUnk
, &IID_IOleObject
, (LPVOID
*)&pOE
))))
108 TRACE("trying to set clientsite %p\n", pClientSite
);
109 hres1
= IOleObject_SetClientSite(pOE
, pClientSite
);
110 TRACE("-- result 0x%08lx\n", hres1
);
111 IOleObject_Release(pOE
);
113 if (SUCCEEDED((hres
= IUnknown_QueryInterface( pUnk
, &IID_IPersistStorage
, (LPVOID
*)&pPS
))))
115 TRACE("trying to set stg %p\n", pStg
);
116 hres1
= IPersistStorage_InitNew(pPS
, pStg
);
117 TRACE("-- result 0x%08lx\n", hres1
);
118 IPersistStorage_Release(pPS
);
125 TRACE("-- %p \n", pUnk
);
129 /******************************************************************************
130 * OleCreateLink [OLE32.94]
132 HRESULT WINAPI
OleCreateLink(LPMONIKER pmkLinkSrc
, REFIID riid
, DWORD renderopt
, LPFORMATETC lpFormatEtc
,
133 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
)
135 FIXME("(not shown), stub!\n");
139 /******************************************************************************
140 * OleCreateFromFile [OLE32.93]
142 HRESULT WINAPI
OleCreateFromFile(REFCLSID rclsid
, LPCOLESTR lpszFileName
, REFIID riid
,
143 DWORD renderopt
, LPFORMATETC lpFormatEtc
, LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
)
145 FIXME("(not shown), stub!\n");
150 /******************************************************************************
151 * OleGetIconOfClass [OLE32.106]
153 HGLOBAL WINAPI
OleGetIconOfClass(REFCLSID rclsid
, LPOLESTR lpszLabel
, BOOL fUseTypeAsLabel
)
155 FIXME("(%p,%p,%x), stub!\n", rclsid
, lpszLabel
, fUseTypeAsLabel
);
159 /******************************************************************************
160 * ReadFmtUserTypeStg [OLE32.136]
162 HRESULT WINAPI
ReadFmtUserTypeStg (LPSTORAGE pstg
, CLIPFORMAT
* pcf
, LPOLESTR
* lplpszUserType
)
164 FIXME("(%p,%p,%p), stub!\n", pstg
, pcf
, lplpszUserType
);
168 /******************************************************************************
169 * OleCreateStaticFromData [OLE32.98]
171 HRESULT WINAPI
OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj
, REFIID iid
,
172 DWORD renderopt
, LPFORMATETC pFormatEtc
, LPOLECLIENTSITE pClientSite
,
173 LPSTORAGE pStg
, LPVOID
* ppvObj
)
175 FIXME("(not shown), stub!\n");
179 /******************************************************************************
180 * OleCreateLinkFromData [OLE32.95]
183 HRESULT WINAPI
OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj
, REFIID riid
,
184 DWORD renderopt
, LPFORMATETC pFormatEtc
,
185 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
,
188 FIXME("(not shown), stub!\n");
192 /******************************************************************************
193 * OleIsRunning [OLE32.111]
195 BOOL WINAPI
OleIsRunning(LPOLEOBJECT pObject
)
197 FIXME("(%p), stub!\n", pObject
);
201 /***********************************************************************
202 * OleRegEnumVerbs [OLE32.120]
204 HRESULT WINAPI
OleRegEnumVerbs (REFCLSID clsid
, LPENUMOLEVERB
* ppenum
)
206 FIXME("(%p,%p), stub!\n", clsid
, ppenum
);
207 return OLEOBJ_E_NOVERBS
;
210 /***********************************************************************
211 * OleRegEnumFormatEtc [OLE32.119]
213 HRESULT WINAPI
OleRegEnumFormatEtc (
216 LPENUMFORMATETC
* ppenumFormatetc
)
218 FIXME("(%p, %ld, %p), stub!\n", clsid
, dwDirection
, ppenumFormatetc
);
223 /***********************************************************************
224 * PropVariantClear [OLE32.166]
226 HRESULT WINAPI
PropVariantClear(void *pvar
) /* [in/out] FIXME: PROPVARIANT * */
228 FIXME("(%p): stub:\n", pvar
);
231 /* sets at least the vt field to VT_EMPTY */
235 /***********************************************************************
236 * PropVariantCopy [OLE32.246]
238 HRESULT WINAPI
PropVariantCopy(void *pvarDest
, /* [out] FIXME: PROPVARIANT * */
239 const void *pvarSrc
) /* [in] FIXME: const PROPVARIANT * */
241 FIXME("(%p, %p): stub:\n", pvarDest
, pvarSrc
);
246 /***********************************************************************
247 * FreePropVariantArray [OLE32.195]
249 HRESULT WINAPI
FreePropVariantArray(ULONG cVariants
, /* [in] */
250 void *rgvars
) /* [in/out] FIXME: PROPVARIANT * */
252 FIXME("(%lu, %p): stub:\n", cVariants
, rgvars
);
257 /***********************************************************************
258 * CoIsOle1Class [OLE32.29]
260 BOOL WINAPI
CoIsOle1Class(REFCLSID clsid
)
262 FIXME("%s\n", debugstr_guid(clsid
));