ieframe: Added IProvideClassInfo::GetClassInfo implementation.
This commit is contained in:
parent
770f864af4
commit
c6a8e9a5b8
|
@ -52,11 +52,19 @@ static ULONG WINAPI ProvideClassInfo_Release(IProvideClassInfo2 *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);
|
||||
FIXME("(%p)->(%p)\n", This, ppTI);
|
||||
return E_NOTIMPL;
|
||||
HRESULT hres;
|
||||
|
||||
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,
|
||||
|
|
|
@ -284,12 +284,16 @@ void register_iewindow_class(void) DECLSPEC_HIDDEN;
|
|||
void unregister_iewindow_class(void) DECLSPEC_HIDDEN;
|
||||
|
||||
#define TID_LIST \
|
||||
XCLSID(WebBrowser) \
|
||||
XCLSID(WebBrowser_V1) \
|
||||
XIID(IWebBrowser2)
|
||||
|
||||
typedef enum {
|
||||
#define XIID(iface) iface ## _tid,
|
||||
#define XCLSID(class) class ## _tid,
|
||||
TID_LIST
|
||||
#undef XIID
|
||||
#undef XCLSID
|
||||
LAST_tid
|
||||
} tid_t;
|
||||
|
||||
|
|
|
@ -59,8 +59,10 @@ static ITypeInfo *typeinfos[LAST_tid];
|
|||
|
||||
static REFIID tid_ids[] = {
|
||||
#define XIID(iface) &IID_ ## iface,
|
||||
#define XCLSID(class) &CLSID_ ## class,
|
||||
TID_LIST
|
||||
#undef XIID
|
||||
#undef XCLSID
|
||||
};
|
||||
|
||||
static HRESULT load_typelib(void)
|
||||
|
|
Loading…
Reference in New Issue