ole2stubs.c 4.47 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
 *
 * 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
19
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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,%i,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
43
    return E_NOTIMPL;
44 45 46
}

/******************************************************************************
47
 *              SetConvertStg        [OLE32.@]
48 49 50
 */
HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
{
51
  FIXME("(%p,%x), stub!\n", pStg, fConvert);
52
  return E_NOTIMPL;
53 54 55
}

/******************************************************************************
56
 *              OleCreateLink        [OLE32.@]
57 58 59 60
 */
HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
                LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{
61
  FIXME("(not shown), stub!\n");
62
  return E_NOTIMPL;
63 64 65
}

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


/******************************************************************************
77
 *              OleGetIconOfClass        [OLE32.@]
78 79 80
 */
HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
{
81
  FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
82
  return NULL;
83 84 85 86
}


/******************************************************************************
87
 *              OleCreateStaticFromData        [OLE32.@]
88 89 90 91 92
 */
HRESULT     WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
                DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
                LPSTORAGE pStg, LPVOID* ppvObj)
{
93
  FIXME("(not shown), stub!\n");
94
  return E_NOTIMPL;
95 96 97
}

/******************************************************************************
98
 *              OleCreateLinkFromData        [OLE32.@]
99 100 101 102 103 104 105
 */

HRESULT WINAPI  OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
                DWORD renderopt, LPFORMATETC pFormatEtc,
                LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
                LPVOID* ppvObj)
{
106
  FIXME("(not shown), stub!\n");
107
  return E_NOTIMPL;
108 109
}

110
/***********************************************************************
111
 *           OleRegEnumFormatEtc    [OLE32.@]
112 113
 */
HRESULT     WINAPI OleRegEnumFormatEtc (
114
  REFCLSID clsid,
115 116 117
  DWORD    dwDirection,
  LPENUMFORMATETC* ppenumFormatetc)
{
118
    FIXME("(%p, %d, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
119

120
    return E_NOTIMPL;
121
}
122 123 124 125 126 127 128 129 130

/***********************************************************************
 *              CoGetCallerTID        [OLE32.@]
 */
HRESULT WINAPI CoGetCallerTID(LPDWORD lpdwTID)
{
  FIXME("stub!\n");
  return E_NOTIMPL;
}
131 132 133 134 135 136 137 138 139

/***********************************************************************
 *              CoGetCurrentLogicalThreadId        [OLE32.@]
 */
HRESULT WINAPI CoGetCurrentLogicalThreadId(GUID *pguid)
{
  FIXME(": stub\n");
  return E_NOTIMPL;
}