Commit c6a8e9a5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe: Added IProvideClassInfo::GetClassInfo implementation.

parent 770f864a
...@@ -52,11 +52,19 @@ static ULONG WINAPI ProvideClassInfo_Release(IProvideClassInfo2 *iface) ...@@ -52,11 +52,19 @@ static ULONG WINAPI ProvideClassInfo_Release(IProvideClassInfo2 *iface)
return IWebBrowser_Release(&This->IWebBrowser2_iface); return IWebBrowser_Release(&This->IWebBrowser2_iface);
} }
static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideClassInfo2 *iface, LPTYPEINFO *ppTI) static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideClassInfo2 *iface, ITypeInfo **ppTI)
{ {
WebBrowser *This = impl_from_IProvideClassInfo2(iface); WebBrowser *This = impl_from_IProvideClassInfo2(iface);
FIXME("(%p)->(%p)\n", This, ppTI); HRESULT hres;
return E_NOTIMPL;
TRACE("(%p)->(%p)\n", This, ppTI);
hres = get_typeinfo(This->version > 1 ? WebBrowser_tid : WebBrowser_V1_tid, ppTI);
if(FAILED(hres))
return hres;
ITypeInfo_AddRef(*ppTI);
return S_OK;
} }
static HRESULT WINAPI ProvideClassInfo_GetGUID(IProvideClassInfo2 *iface, static HRESULT WINAPI ProvideClassInfo_GetGUID(IProvideClassInfo2 *iface,
......
...@@ -284,12 +284,16 @@ void register_iewindow_class(void) DECLSPEC_HIDDEN; ...@@ -284,12 +284,16 @@ void register_iewindow_class(void) DECLSPEC_HIDDEN;
void unregister_iewindow_class(void) DECLSPEC_HIDDEN; void unregister_iewindow_class(void) DECLSPEC_HIDDEN;
#define TID_LIST \ #define TID_LIST \
XCLSID(WebBrowser) \
XCLSID(WebBrowser_V1) \
XIID(IWebBrowser2) XIID(IWebBrowser2)
typedef enum { typedef enum {
#define XIID(iface) iface ## _tid, #define XIID(iface) iface ## _tid,
#define XCLSID(class) class ## _tid,
TID_LIST TID_LIST
#undef XIID #undef XIID
#undef XCLSID
LAST_tid LAST_tid
} tid_t; } tid_t;
......
...@@ -59,8 +59,10 @@ static ITypeInfo *typeinfos[LAST_tid]; ...@@ -59,8 +59,10 @@ static ITypeInfo *typeinfos[LAST_tid];
static REFIID tid_ids[] = { static REFIID tid_ids[] = {
#define XIID(iface) &IID_ ## iface, #define XIID(iface) &IID_ ## iface,
#define XCLSID(class) &CLSID_ ## class,
TID_LIST TID_LIST
#undef XIID #undef XIID
#undef XCLSID
}; };
static HRESULT load_typelib(void) static HRESULT load_typelib(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment