110 for(
i = 0;
i <
Obj->maxSinks;
i++) {
112 IUnknown_Release(
Obj->sinks[
i]);
174 TRACE(
"(%p)->(ref before=%d)\n",
This, refCount - 1);
190 TRACE(
"(%p)->(ref before=%d)\n",
This, refCount + 1);
239 TRACE(
"(%p)->(%p, %p)\n",
This, lpUnk, pdwCookie);
242 if(
FAILED(IUnknown_QueryInterface(lpUnk, &
This->iid, (
void**)&lpSink)))
245 for(
i = 0;
i <
This->maxSinks;
i++) {
249 if(
i ==
This->maxSinks) {
254 This->sinks[
i] = lpSink;
275 IUnknown_Release(
This->sinks[dwCookie-1]);
287 LPENUMCONNECTIONS *ppEnum)
303 for(
i = 0, nextslot = 0;
i <
This->maxSinks;
i++) {
305 pCD[nextslot].pUnk =
This->sinks[
i];
306 pCD[nextslot].dwCookie =
i + 1;
314 IConnectionPoint_AddRef(iface);
354 Obj->nConns = nSinks;
357 for(
i = 0;
i < nSinks;
i++) {
358 Obj->pCD[
i] = pCD[
i];
359 IUnknown_AddRef(
Obj->pCD[
i].pUnk);
371 for(
i = 0;
i <
Obj->nConns;
i++)
372 IUnknown_Release(
Obj->pCD[
i].pUnk);
431 TRACE(
"(%p)->(ref before=%d)\n",
This, refCount - 1);
433 IUnknown_AddRef(
This->pUnk);
447 TRACE(
"(%p)->(ref before=%d)\n",
This, refCount + 1);
449 IUnknown_Release(
This->pUnk);
464 ULONG cConn, LPCONNECTDATA pCD,
469 TRACE(
"(%p)->(%d, %p, %p)\n",
This, cConn, pCD, pEnum);
480 while(
This->nCur <
This->nConns && cConn) {
482 IUnknown_AddRef(
This->pCD[
This->nCur].pUnk);
505 if(
This->nCur + cSkip >=
This->nConns)
534 LPENUMCONNECTIONS *ppEnum)
543 IUnknown_AddRef(
This->pUnk);
592 *pCP = &
Obj->IConnectionPoint_iface;
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static const IConnectionPointVtbl ConnectionPointImpl_VTable
static HRESULT WINAPI ConnectionPointImpl_Advise(IConnectionPoint *iface, IUnknown *lpUnk, DWORD *pdwCookie)
static HRESULT WINAPI ConnectionPointImpl_GetConnectionInterface(IConnectionPoint *iface, IID *piid)
static EnumConnectionsImpl * impl_from_IEnumConnections(IEnumConnections *iface)
static HRESULT WINAPI EnumConnectionsImpl_Reset(IEnumConnections *iface)
static void ConnectionPointImpl_Destroy(ConnectionPointImpl *Obj)
static ConnectionPointImpl * impl_from_IConnectionPoint(IConnectionPoint *iface)
static HRESULT WINAPI EnumConnectionsImpl_Skip(IEnumConnections *iface, ULONG cSkip)
static const IEnumConnectionsVtbl EnumConnectionsImpl_VTable
static ULONG WINAPI ConnectionPointImpl_AddRef(IConnectionPoint *iface)
static HRESULT WINAPI ConnectionPointImpl_Unadvise(IConnectionPoint *iface, DWORD dwCookie)
static EnumConnectionsImpl * EnumConnectionsImpl_Construct(IUnknown *pUnk, DWORD nSinks, CONNECTDATA *pCD)
static HRESULT WINAPI EnumConnectionsImpl_Next(IEnumConnections *iface, ULONG cConn, LPCONNECTDATA pCD, ULONG *pEnum)
static void EnumConnectionsImpl_Destroy(EnumConnectionsImpl *Obj)
static HRESULT WINAPI EnumConnectionsImpl_Clone(IEnumConnections *iface, LPENUMCONNECTIONS *ppEnum)
static HRESULT WINAPI EnumConnectionsImpl_QueryInterface(IEnumConnections *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI ConnectionPointImpl_QueryInterface(IConnectionPoint *iface, REFIID riid, void **ppvObject)
HRESULT CreateConnectionPoint(IUnknown *pUnk, REFIID riid, IConnectionPoint **pCP)
static HRESULT WINAPI ConnectionPointImpl_EnumConnections(IConnectionPoint *iface, LPENUMCONNECTIONS *ppEnum)
static ULONG WINAPI EnumConnectionsImpl_Release(IEnumConnections *iface)
static ULONG WINAPI ConnectionPointImpl_Release(IConnectionPoint *iface)
static HRESULT WINAPI ConnectionPointImpl_GetConnectionPointContainer(IConnectionPoint *iface, IConnectionPointContainer **ppCPC)
static ULONG WINAPI EnumConnectionsImpl_AddRef(IEnumConnections *iface)
#define HeapFree(x, y, z)
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define CONNECT_E_CANNOTCONNECT
#define CONNECT_E_NOCONNECTION
const GUID IID_IEnumConnections
const GUID IID_IConnectionPointContainer
const GUID IID_IConnectionPoint
#define IsEqualIID(riid1, riid2)
IConnectionPoint IConnectionPoint_iface
IEnumConnections IEnumConnections_iface
#define CONTAINING_RECORD(address, type, field)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define OLE_E_NOCONNECTION