ole32: Add a stub for OleCreateFromFileEx.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d340f09a33
commit
94ee4096ec
|
@ -315,6 +315,8 @@ extern LSTATUS open_classes_key(HKEY, const WCHAR *, REGSAM, HKEY *) DECLSPEC_HI
|
||||||
|
|
||||||
extern BOOL actctx_get_miscstatus(const CLSID*, DWORD, DWORD*) DECLSPEC_HIDDEN;
|
extern BOOL actctx_get_miscstatus(const CLSID*, DWORD, DWORD*) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
extern const char *debugstr_formatetc(const FORMATETC *formatetc) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
static inline void *heap_alloc(size_t len)
|
static inline void *heap_alloc(size_t len)
|
||||||
{
|
{
|
||||||
return HeapAlloc(GetProcessHeap(), 0, len);
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
||||||
|
|
|
@ -216,7 +216,7 @@ static inline DataCache *impl_from_IAdviseSink( IAdviseSink *iface )
|
||||||
return CONTAINING_RECORD(iface, DataCache, IAdviseSink_iface);
|
return CONTAINING_RECORD(iface, DataCache, IAdviseSink_iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * debugstr_formatetc(const FORMATETC *formatetc)
|
const char *debugstr_formatetc(const FORMATETC *formatetc)
|
||||||
{
|
{
|
||||||
return wine_dbg_sprintf("{ cfFormat = 0x%x, ptd = %p, dwAspect = %d, lindex = %d, tymed = %d }",
|
return wine_dbg_sprintf("{ cfFormat = 0x%x, ptd = %p, dwAspect = %d, lindex = %d, tymed = %d }",
|
||||||
formatetc->cfFormat, formatetc->ptd, formatetc->dwAspect,
|
formatetc->cfFormat, formatetc->ptd, formatetc->dwAspect,
|
||||||
|
|
|
@ -232,6 +232,37 @@ HRESULT WINAPI OleCreateStaticFromData(IDataObject *data, REFIID iid,
|
||||||
return OleCreateFromData(data, iid, renderopt, fmt, client_site, stg, obj);
|
return OleCreateFromData(data, iid, renderopt, fmt, client_site, stg, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* OleCreateFromFileEx [OLE32.@]
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI OleCreateFromFileEx(REFCLSID clsid, const OLECHAR *filename, REFIID iid, DWORD flags,
|
||||||
|
DWORD renderopt, ULONG num_fmts, DWORD *adv_flags, FORMATETC *fmts, IAdviseSink *sink,
|
||||||
|
DWORD *conns, IOleClientSite *client_site, IStorage *stg, void **obj)
|
||||||
|
{
|
||||||
|
ULONG i;
|
||||||
|
|
||||||
|
FIXME("%s: stub!\n", debugstr_w(filename));
|
||||||
|
TRACE("cls %s, %s, iid %s, flags %d, render opts %d, num fmts %d, adv flags %p, fmts %p\n", debugstr_guid(clsid),
|
||||||
|
debugstr_w(filename), debugstr_guid(iid), flags, renderopt, num_fmts, adv_flags, fmts);
|
||||||
|
TRACE("sink %p, conns %p, client site %p, storage %p, obj %p\n", sink, conns, client_site, stg, obj);
|
||||||
|
for (i = 0; i < num_fmts; i++)
|
||||||
|
TRACE("\t%d: fmt %s adv flags %d\n", i, debugstr_formatetc(fmts + i), adv_flags[i]);
|
||||||
|
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* OleCreateFromFile [OLE32.@]
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI OleCreateFromFile(REFCLSID clsid, const OLECHAR *filename, REFIID iid, DWORD renderopt,
|
||||||
|
FORMATETC *fmt, IOleClientSite *client_site, IStorage *storage, void **obj)
|
||||||
|
{
|
||||||
|
DWORD advf = ADVF_PRIMEFIRST;
|
||||||
|
|
||||||
|
return OleCreateFromFileEx(clsid, filename, iid, 0, renderopt, fmt ? 1 : 0, fmt ? &advf : NULL, fmt,
|
||||||
|
NULL, NULL, client_site, storage, obj);
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* OleDuplicateData [OLE32.@]
|
* OleDuplicateData [OLE32.@]
|
||||||
*
|
*
|
||||||
|
|
|
@ -51,17 +51,6 @@ HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt,
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
|
||||||
* OleCreateFromFile [OLE32.@]
|
|
||||||
*/
|
|
||||||
HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
|
|
||||||
DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
|
|
||||||
{
|
|
||||||
FIXME("(not shown), stub!\n");
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* OleGetIconOfClass [OLE32.@]
|
* OleGetIconOfClass [OLE32.@]
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -188,8 +188,8 @@
|
||||||
@ stub OleCreateEx
|
@ stub OleCreateEx
|
||||||
@ stdcall OleCreateFromData(ptr ptr long ptr ptr ptr ptr)
|
@ stdcall OleCreateFromData(ptr ptr long ptr ptr ptr ptr)
|
||||||
@ stdcall OleCreateFromDataEx(ptr ptr long long long ptr ptr ptr ptr ptr ptr ptr)
|
@ stdcall OleCreateFromDataEx(ptr ptr long long long ptr ptr ptr ptr ptr ptr ptr)
|
||||||
@ stdcall OleCreateFromFile(ptr ptr ptr long ptr ptr ptr ptr)
|
@ stdcall OleCreateFromFile(ptr wstr ptr long ptr ptr ptr ptr)
|
||||||
@ stub OleCreateFromFileEx
|
@ stdcall OleCreateFromFileEx(ptr wstr ptr long long long ptr ptr ptr ptr ptr ptr ptr)
|
||||||
@ stdcall OleCreateLink(ptr ptr long ptr ptr ptr ptr)
|
@ stdcall OleCreateLink(ptr ptr long ptr ptr ptr ptr)
|
||||||
@ stub OleCreateLinkEx
|
@ stub OleCreateLinkEx
|
||||||
@ stdcall OleCreateLinkFromData(ptr ptr long ptr ptr ptr ptr)
|
@ stdcall OleCreateLinkFromData(ptr ptr long ptr ptr ptr ptr)
|
||||||
|
|
|
@ -107,6 +107,9 @@ HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLab
|
||||||
HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses);
|
HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses);
|
||||||
HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
|
HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
|
||||||
DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
|
DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
|
||||||
|
HRESULT WINAPI OleCreateFromFileEx(REFCLSID clsid, LPCOLESTR filename, REFIID iid, DWORD flags,
|
||||||
|
DWORD renderopt, ULONG num_fmts, DWORD *adv_flags, LPFORMATETC fmts, IAdviseSink *sink,
|
||||||
|
DWORD *conns, LPOLECLIENTSITE client_site, LPSTORAGE storage, LPVOID* obj);
|
||||||
HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
|
HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
|
||||||
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
|
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
|
||||||
HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
|
HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
|
||||||
|
|
Loading…
Reference in New Issue