ReactOS  0.4.14-dev-614-gbfd8a84
classinfo.c File Reference
#include "ieframe.h"
#include "wine/debug.h"
Include dependency graph for classinfo.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ieframe)
 
static WebBrowserimpl_from_IProvideClassInfo2 (IProvideClassInfo2 *iface)
 
static HRESULT WINAPI ProvideClassInfo_QueryInterface (IProvideClassInfo2 *iface, REFIID riid, LPVOID *ppobj)
 
static ULONG WINAPI ProvideClassInfo_AddRef (IProvideClassInfo2 *iface)
 
static ULONG WINAPI ProvideClassInfo_Release (IProvideClassInfo2 *iface)
 
static HRESULT WINAPI ProvideClassInfo_GetClassInfo (IProvideClassInfo2 *iface, ITypeInfo **ppTI)
 
static HRESULT WINAPI ProvideClassInfo_GetGUID (IProvideClassInfo2 *iface, DWORD dwGuidKind, GUID *pGUID)
 
void WebBrowser_ClassInfo_Init (WebBrowser *This)
 

Variables

static const IProvideClassInfo2Vtbl ProvideClassInfoVtbl
 

Function Documentation

◆ impl_from_IProvideClassInfo2()

static WebBrowser* impl_from_IProvideClassInfo2 ( IProvideClassInfo2 iface)
inlinestatic

Definition at line 31 of file classinfo.c.

32 {
33  return CONTAINING_RECORD(iface, WebBrowser, IProvideClassInfo2_iface);
34 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by ProvideClassInfo_AddRef(), ProvideClassInfo_GetClassInfo(), ProvideClassInfo_GetGUID(), ProvideClassInfo_QueryInterface(), and ProvideClassInfo_Release().

◆ ProvideClassInfo_AddRef()

static ULONG WINAPI ProvideClassInfo_AddRef ( IProvideClassInfo2 iface)
static

Definition at line 43 of file classinfo.c.

44 {
46  return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
47 }
static WebBrowser * impl_from_IProvideClassInfo2(IProvideClassInfo2 *iface)
Definition: classinfo.c:31

◆ ProvideClassInfo_GetClassInfo()

static HRESULT WINAPI ProvideClassInfo_GetClassInfo ( IProvideClassInfo2 iface,
ITypeInfo **  ppTI 
)
static

Definition at line 55 of file classinfo.c.

56 {
58  HRESULT hres;
59 
60  TRACE("(%p)->(%p)\n", This, ppTI);
61 
62  hres = get_typeinfo(This->version > 1 ? WebBrowser_tid : WebBrowser_V1_tid, ppTI);
63  if(FAILED(hres))
64  return hres;
65 
66  ITypeInfo_AddRef(*ppTI);
67  return S_OK;
68 }
static WebBrowser * impl_from_IProvideClassInfo2(IProvideClassInfo2 *iface)
Definition: classinfo.c:31
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59

◆ ProvideClassInfo_GetGUID()

static HRESULT WINAPI ProvideClassInfo_GetGUID ( IProvideClassInfo2 iface,
DWORD  dwGuidKind,
GUID pGUID 
)
static

Definition at line 70 of file classinfo.c.

72 {
74 
75  TRACE("(%p)->(%d %p)\n", This, dwGuidKind, pGUID);
76 
77  if(!pGUID)
78  return E_POINTER;
79 
80  if (dwGuidKind != GUIDKIND_DEFAULT_SOURCE_DISP_IID) {
81  WARN("Wrong GUID type: %d\n", dwGuidKind);
82  *pGUID = IID_NULL;
83  return E_FAIL;
84  }
85 
86  memcpy(pGUID, This->version == 1 ? &DIID_DWebBrowserEvents : &DIID_DWebBrowserEvents2,
87  sizeof(GUID));
88  return S_OK;
89 }
#define WARN(fmt,...)
Definition: debug.h:111
static WebBrowser * impl_from_IProvideClassInfo2(IProvideClassInfo2 *iface)
Definition: classinfo.c:31
#define E_FAIL
Definition: ddrawi.h:102
#define TRACE(s)
Definition: solgame.cpp:4
#define IID_NULL
Definition: guiddef.h:98
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define S_OK
Definition: intsafe.h:59
#define E_POINTER
Definition: winerror.h:2365

◆ ProvideClassInfo_QueryInterface()

static HRESULT WINAPI ProvideClassInfo_QueryInterface ( IProvideClassInfo2 iface,
REFIID  riid,
LPVOID ppobj 
)
static

Definition at line 36 of file classinfo.c.

38 {
40  return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppobj);
41 }
REFIID riid
Definition: precomp.h:44
static WebBrowser * impl_from_IProvideClassInfo2(IProvideClassInfo2 *iface)
Definition: classinfo.c:31

◆ ProvideClassInfo_Release()

static ULONG WINAPI ProvideClassInfo_Release ( IProvideClassInfo2 iface)
static

Definition at line 49 of file classinfo.c.

50 {
52  return IWebBrowser2_Release(&This->IWebBrowser2_iface);
53 }
static WebBrowser * impl_from_IProvideClassInfo2(IProvideClassInfo2 *iface)
Definition: classinfo.c:31

◆ WebBrowser_ClassInfo_Init()

void WebBrowser_ClassInfo_Init ( WebBrowser This)

Definition at line 100 of file classinfo.c.

101 {
102  This->IProvideClassInfo2_iface.lpVtbl = &ProvideClassInfoVtbl;
103 }
static const IProvideClassInfo2Vtbl ProvideClassInfoVtbl
Definition: classinfo.c:91

Referenced by create_webbrowser().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ieframe  )

Variable Documentation

◆ ProvideClassInfoVtbl

const IProvideClassInfo2Vtbl ProvideClassInfoVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI ProvideClassInfo_QueryInterface(IProvideClassInfo2 *iface, REFIID riid, LPVOID *ppobj)
Definition: classinfo.c:36
static ULONG WINAPI ProvideClassInfo_AddRef(IProvideClassInfo2 *iface)
Definition: classinfo.c:43
static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideClassInfo2 *iface, ITypeInfo **ppTI)
Definition: classinfo.c:55
static HRESULT WINAPI ProvideClassInfo_GetGUID(IProvideClassInfo2 *iface, DWORD dwGuidKind, GUID *pGUID)
Definition: classinfo.c:70
static ULONG WINAPI ProvideClassInfo_Release(IProvideClassInfo2 *iface)
Definition: classinfo.c:49

Definition at line 91 of file classinfo.c.

Referenced by WebBrowser_ClassInfo_Init().