ole2stubs.c 5.9 KB
Newer Older
1 2 3 4
/*
 * Temporary place for ole2 stubs.
 *
 * Copyright (C) 1999 Corel Corporation
5
 * Move these functions to dlls/ole32/ole2impl.c when you implement them.
6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 21
 */

22 23
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
24 25
#include <stdarg.h>

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 39 40 41
 */
HRESULT WINAPI  OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
	  		DWORD renderopt, LPFORMATETC lpFormatEtc,
			LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{
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 51 52
 */
HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat,
	                          UINT uiFlags)
{
53
    FIXME("(%p,%x,%x), stub!\n", hSrc, cfFormat, uiFlags);
54
    return E_NOTIMPL;
55 56
}

57

58
/******************************************************************************
59
 *              SetConvertStg        [OLE32.@]
60 61 62
 */
HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
{
63
  FIXME("(%p,%x), stub!\n", pStg, fConvert);
64
  return E_NOTIMPL;
65 66 67
}

/******************************************************************************
68
 *              OleCreateLink        [OLE32.@]
69 70 71 72
 */
HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
                LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{
73
  FIXME("(not shown), stub!\n");
74
  return E_NOTIMPL;
75 76 77
}

/******************************************************************************
78
 *              OleCreateFromFile        [OLE32.@]
79 80 81 82
 */
HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
            DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{
83
  FIXME("(not shown), stub!\n");
84
  return E_NOTIMPL;
85 86 87 88
}


/******************************************************************************
89
 *              OleGetIconOfClass        [OLE32.@]
90 91 92
 */
HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
{
93
  FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
94
  return NULL;
95 96 97 98
}


/******************************************************************************
99
 *              OleCreateStaticFromData        [OLE32.@]
100 101 102 103 104
 */
HRESULT     WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
                DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
                LPSTORAGE pStg, LPVOID* ppvObj)
{
105
  FIXME("(not shown), stub!\n");
106
  return E_NOTIMPL;
107 108 109
}

/******************************************************************************
110
 *              OleCreateLinkFromData        [OLE32.@]
111 112 113 114 115 116 117
 */

HRESULT WINAPI  OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
                DWORD renderopt, LPFORMATETC pFormatEtc,
                LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
                LPVOID* ppvObj)
{
118
  FIXME("(not shown), stub!\n");
119
  return E_NOTIMPL;
120 121 122
}

/******************************************************************************
123
 *              OleIsRunning        [OLE32.@]
124 125 126
 */
BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject)
{
127
  FIXME("(%p), stub!\n", pObject);
128 129 130 131
  return TRUE;
}

/***********************************************************************
132
 *           OleRegEnumVerbs    [OLE32.@]
133 134 135
 */
HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
{
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 146 147
  DWORD    dwDirection,
  LPENUMFORMATETC* ppenumFormatetc)
{
148
    FIXME("(%p, %ld, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
149

150
    return E_NOTIMPL;
151 152
}

Huw D M Davies's avatar
Huw D M Davies committed
153
/***********************************************************************
154
 *           CoIsOle1Class                              [OLE32.@]
Huw D M Davies's avatar
Huw D M Davies committed
155 156 157 158 159 160
 */
BOOL WINAPI CoIsOle1Class(REFCLSID clsid)
{
  FIXME("%s\n", debugstr_guid(clsid));
  return FALSE;
}
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187

/***********************************************************************
 *           DllGetClassObject                          [OLE2.4]
 */
HRESULT WINAPI DllGetClassObject16(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
{
  FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
  return E_NOTIMPL;
}

/***********************************************************************
 *           OleSetClipboard                            [OLE2.49]
 */
HRESULT WINAPI OleSetClipboard16(IDataObject* pDataObj)
{
  FIXME("(%p): stub\n", pDataObj);
  return S_OK;
}

/***********************************************************************
 *           OleGetClipboard                            [OLE2.50]
 */
HRESULT WINAPI OleGetClipboard16(IDataObject** ppDataObj)
{
  FIXME("(%p): stub\n", ppDataObj);
  return E_NOTIMPL;
}