*/
typedef struct ConnectionPointImpl {
- ICOM_VTABLE(IConnectionPoint) *lpvtbl;
+ IConnectionPointVtbl *lpvtbl;
/* IUnknown of our main object*/
IUnknown *Obj;
DWORD nSinks;
} ConnectionPointImpl;
-static ICOM_VTABLE(IConnectionPoint) ConnectionPointImpl_VTable;
+static IConnectionPointVtbl ConnectionPointImpl_VTable;
/************************************************************************
*/
typedef struct EnumConnectionsImpl {
- ICOM_VTABLE(IEnumConnections) *lpvtbl;
+ IEnumConnectionsVtbl *lpvtbl;
DWORD ref;
REFIID riid,
void** ppvObject)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), ppvObject);
/*
*/
static ULONG WINAPI ConnectionPointImpl_AddRef(IConnectionPoint* iface)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(ref=%ld)\n", This, This->ref);
This->ref++;
static ULONG WINAPI ConnectionPointImpl_Release(
IConnectionPoint* iface)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(ref=%ld)\n", This, This->ref);
/*
IConnectionPoint *iface,
IID *piid)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(%p) returning %s\n", This, piid, debugstr_guid(&(This->iid)));
*piid = This->iid;
return S_OK;
IConnectionPoint *iface,
IConnectionPointContainer **ppCPC)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(%p)\n", This, ppCPC);
return IUnknown_QueryInterface(This->Obj,
DWORD *pdwCookie)
{
DWORD i;
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
IUnknown *lpSink;
TRACE("(%p)->(%p, %p)\n", This, lpUnk, pdwCookie);
static HRESULT WINAPI ConnectionPointImpl_Unadvise(IConnectionPoint *iface,
DWORD dwCookie)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(%ld)\n", This, dwCookie);
if(dwCookie == 0 || dwCookie > This->maxSinks) return E_INVALIDARG;
IConnectionPoint *iface,
LPENUMCONNECTIONS *ppEnum)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
CONNECTDATA *pCD;
DWORD i, nextslot;
EnumConnectionsImpl *EnumObj;
return hr;
}
-static ICOM_VTABLE(IConnectionPoint) ConnectionPointImpl_VTable =
+static IConnectionPointVtbl ConnectionPointImpl_VTable =
{
- ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
ConnectionPointImpl_QueryInterface,
ConnectionPointImpl_AddRef,
ConnectionPointImpl_Release,
};
-static ICOM_VTABLE(IEnumConnections) EnumConnectionsImpl_VTable;
+static IEnumConnectionsVtbl EnumConnectionsImpl_VTable;
static ULONG WINAPI EnumConnectionsImpl_AddRef(IEnumConnections* iface);
/************************************************************************
REFIID riid,
void** ppvObject)
{
- ICOM_THIS(ConnectionPointImpl, iface);
+ ConnectionPointImpl *This = (ConnectionPointImpl *)iface;
TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), ppvObject);
/*
*/
static ULONG WINAPI EnumConnectionsImpl_AddRef(IEnumConnections* iface)
{
- ICOM_THIS(EnumConnectionsImpl, iface);
+ EnumConnectionsImpl *This = (EnumConnectionsImpl *)iface;
TRACE("(%p)->(ref=%ld)\n", This, This->ref);
This->ref++;
IUnknown_AddRef(This->pUnk);
*/
static ULONG WINAPI EnumConnectionsImpl_Release(IEnumConnections* iface)
{
- ICOM_THIS(EnumConnectionsImpl, iface);
+ EnumConnectionsImpl *This = (EnumConnectionsImpl *)iface;
TRACE("(%p)->(ref=%ld)\n", This, This->ref);
IUnknown_Release(This->pUnk);
ULONG cConn, LPCONNECTDATA pCD,
ULONG *pEnum)
{
- ICOM_THIS(EnumConnectionsImpl, iface);
+ EnumConnectionsImpl *This = (EnumConnectionsImpl *)iface;
DWORD nRet = 0;
TRACE("(%p)->(%ld, %p, %p)\n", This, cConn, pCD, pEnum);
static HRESULT WINAPI EnumConnectionsImpl_Skip(IEnumConnections* iface,
ULONG cSkip)
{
- ICOM_THIS(EnumConnectionsImpl, iface);
+ EnumConnectionsImpl *This = (EnumConnectionsImpl *)iface;
TRACE("(%p)->(%ld)\n", This, cSkip);
if(This->nCur + cSkip >= This->nConns)
*/
static HRESULT WINAPI EnumConnectionsImpl_Reset(IEnumConnections* iface)
{
- ICOM_THIS(EnumConnectionsImpl, iface);
+ EnumConnectionsImpl *This = (EnumConnectionsImpl *)iface;
TRACE("(%p)\n", This);
This->nCur = 0;
static HRESULT WINAPI EnumConnectionsImpl_Clone(IEnumConnections* iface,
LPENUMCONNECTIONS *ppEnum)
{
- ICOM_THIS(EnumConnectionsImpl, iface);
+ EnumConnectionsImpl *This = (EnumConnectionsImpl *)iface;
EnumConnectionsImpl *newObj;
TRACE("(%p)->(%p)\n", This, ppEnum);
return S_OK;
}
-static ICOM_VTABLE(IEnumConnections) EnumConnectionsImpl_VTable =
+static IEnumConnectionsVtbl EnumConnectionsImpl_VTable =
{
- ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
EnumConnectionsImpl_QueryInterface,
EnumConnectionsImpl_AddRef,
EnumConnectionsImpl_Release,