ole2stubs.c 2.81 KB
Newer Older
1 2 3 4
/*
 * Temporary place for ole2 stubs.
 *
 * Copyright (C) 1999 Corel Corporation
5
 * Move these functions to dlls/ole32/ole2.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
#include <stdarg.h>

24
#include "windef.h"
25
#include "winbase.h"
26
#include "winuser.h"
27
#include "ole2.h"
28
#include "objidl.h"
29
#include "wine/debug.h"
30

31
WINE_DEFAULT_DEBUG_CHANNEL(ole);
32

33
/******************************************************************************
34
 *               OleCreateLinkToFile        [OLE32.@]
35 36 37 38 39
 */
HRESULT WINAPI  OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
	  		DWORD renderopt, LPFORMATETC lpFormatEtc,
			LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{
40
    FIXME("%p, %p, %ld, %p, %p, %p, %p stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
41
    return E_NOTIMPL;
42 43 44
}

/******************************************************************************
45
 *              OleCreateLink        [OLE32.@]
46 47 48 49
 */
HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
                LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{
50
  FIXME("(not shown), stub!\n");
51
  return E_NOTIMPL;
52 53 54
}

/******************************************************************************
55
 *              OleGetIconOfClass        [OLE32.@]
56 57 58
 */
HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
{
59
  FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
60
  return NULL;
61 62
}

63 64 65 66 67 68 69 70 71
/***********************************************************************
 *              OleGetIconOfFile        [OLE32.@]
 */
HGLOBAL WINAPI OleGetIconOfFile(LPOLESTR path, BOOL use_file_as_label)
{
    FIXME("(%s, %d), stub!\n", debugstr_w(path), use_file_as_label);
    return NULL;
}

72
/***********************************************************************
73
 *           OleRegEnumFormatEtc    [OLE32.@]
74
 */
75
HRESULT WINAPI DECLSPEC_HOTPATCH OleRegEnumFormatEtc (
76
  REFCLSID clsid,
77 78 79
  DWORD    dwDirection,
  LPENUMFORMATETC* ppenumFormatetc)
{
80
    FIXME("%p, %ld, %p stub!\n", clsid, dwDirection, ppenumFormatetc);
81

82
    return E_NOTIMPL;
83
}