DOSFS_ToDosFCBFormat: fail if extension longer than 3 characters.
[wine/gsoc-2012-control.git] / dlls / ole32 / ole2stubs.c
blob0c6c663252358faa3f234f8bf1bd4c7eed51140c
1 /*
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.
6 */
8 #include "ole2.h"
9 #include "windef.h"
10 #include "wingdi.h"
11 #include "winuser.h"
12 #include "debugtools.h"
14 DEFAULT_DEBUG_CHANNEL(ole)
16 /******************************************************************************
17 * OleCreateLinkToFile [OLE32.96]
19 HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
20 DWORD renderopt, LPFORMATETC lpFormatEtc,
21 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
23 FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
24 return S_OK;
28 /******************************************************************************
29 * OleDuplicateData [OLE32.102]
31 HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat,
32 UINT uiFlags)
34 FIXME("(%x,%x,%x), stub!\n", hSrc, cfFormat, uiFlags);
35 return S_OK;
39 /***********************************************************************
40 * WriteFmtUserTypeStg (OLE32.160)
42 HRESULT WINAPI WriteFmtUserTypeStg(
43 LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType)
45 FIXME("(%p,%x,%p) stub!\n",pstg,cf,lpszUserType);
46 return S_OK;
49 /***********************************************************************
50 * OleTranslateAccelerator [OLE32.130]
52 HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame,
53 LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg)
55 FIXME("(%p,%p,%p),stub!\n", lpFrame, lpFrameInfo, lpmsg);
56 return S_OK;
59 /******************************************************************************
60 * CoTreatAsClass [OLE32.46]
62 HRESULT WINAPI CoTreatAsClass(REFCLSID clsidOld, REFCLSID clsidNew)
64 FIXME("(%p,%p), stub!\n", clsidOld, clsidNew);
65 return S_OK;
69 /******************************************************************************
70 * IsAccelerator [OLE32.75]
72 BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* lpwCmd)
74 FIXME("(%x,%i,%p,%p), stub!\n", hAccel, cAccelEntries, lpMsg, lpwCmd);
75 return TRUE;
78 /******************************************************************************
79 * SetConvertStg [OLE32.142]
81 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
83 FIXME("(%p,%x), stub!\n", pStg, fConvert);
84 return S_OK;
87 /******************************************************************************
88 * OleCreate [OLE32.80]
90 HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
91 LPSTORAGE pStg, LPVOID* ppvObj)
93 FIXME("(not shown), stub!\n");
94 return E_OUTOFMEMORY;
97 /******************************************************************************
98 * OleCreateLink [OLE32.94]
100 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
101 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
103 FIXME("(not shown), stub!\n");
104 return S_OK;
107 /******************************************************************************
108 * OleCreateFromFile [OLE32.93]
110 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
111 DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
113 FIXME("(not shown), stub!\n");
114 return S_OK;
117 /******************************************************************************
118 * OleLockRunning [OLE32.114]
120 HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses)
122 FIXME("(%p,%x,%x), stub!\n", pUnknown, fLock, fLastUnlockCloses);
123 return S_OK;
126 /******************************************************************************
127 * OleGetIconOfClass [OLE32.106]
129 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
131 FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
132 return S_OK;
135 /******************************************************************************
136 * ReadFmtUserTypeStg [OLE32.136]
138 HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType)
140 FIXME("(%p,%p,%p), stub!\n", pstg, pcf, lplpszUserType);
141 return S_OK;
144 /******************************************************************************
145 * OleCreateStaticFromData [OLE32.98]
147 HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
148 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
149 LPSTORAGE pStg, LPVOID* ppvObj)
151 FIXME("(not shown), stub!\n");
152 return S_OK;
155 /******************************************************************************
156 * OleCreateLinkFromData [OLE32.95]
159 HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
160 DWORD renderopt, LPFORMATETC pFormatEtc,
161 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
162 LPVOID* ppvObj)
164 FIXME("(not shown), stub!\n");
165 return S_OK;
168 /******************************************************************************
169 * OleIsRunning [OLE32.111]
171 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject)
173 FIXME("(%p), stub!\n", pObject);
174 return TRUE;
177 /***********************************************************************
178 * OleRegEnumVerbs [OLE32.120]
180 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
182 FIXME("(%p,%p), stub!\n", clsid, ppenum);
183 return OLEOBJ_E_NOVERBS;
186 /***********************************************************************
187 * OleRegEnumFormatEtc [OLE32.119]
189 HRESULT WINAPI OleRegEnumFormatEtc (
190 REFCLSID clsid,
191 DWORD dwDirection,
192 LPENUMFORMATETC* ppenumFormatetc)
194 FIXME("(%p, %ld, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
196 return S_OK;
199 /***********************************************************************
200 * PropVariantClear [OLE32.166]
202 HRESULT WINAPI PropVariantClear(/*PROPVARIANT* */void* pvar)
204 FIXME("(%p): stub:\n", pvar);
206 *(LPWORD)pvar = 0;
207 /* sets at least the vt field to VT_EMPTY */
208 return S_OK;
211 /***********************************************************************
212 * PropVariantCopy [OLE32.246]
214 HRESULT WINAPI PropVariantCopy(/*PROPVARIANT* */void* pvarDest,
215 /*const PROPVARIANT* */ void* pvarSrc)
217 FIXME("(%p, %p): stub:\n", pvarDest, pvarSrc);
219 return S_OK;
222 /***********************************************************************
223 * FreePropVariantArray [OLE32.195]
225 HRESULT WINAPI FreePropVariantArray(ULONG cVariants, /*PROPVARIANT* */void* rgvars)
227 FIXME("(%lu, %p): stub:\n", cVariants, rgvars);
229 return S_OK;