ReactOS 0.4.15-dev-7958-gcd0bb1a
EventConnection Struct Reference

#include <webchild.h>

Inheritance diagram for EventConnection:
Collaboration diagram for EventConnection:

Public Member Functions

 EventConnection (IConnectionPoint *connectionpoint, IUnknown *sink)
 
template<typename T >
 EventConnection (T &connectionpoint, IUnknown *sink)
 
 ~EventConnection ()
 

Protected Attributes

SIfacePtr< IConnectionPoint_connectionpoint
 
DWORD _cookie
 

Detailed Description

Definition at line 94 of file webchild.h.

Constructor & Destructor Documentation

◆ EventConnection() [1/2]

EventConnection::EventConnection ( IConnectionPoint connectionpoint,
IUnknown sink 
)
inline

Definition at line 96 of file webchild.h.

97 {
98 CheckError(connectionpoint->Advise(sink, &_cookie));
99 _connectionpoint = connectionpoint;
100 }
GLsizei GLenum GLboolean sink
Definition: glext.h:5672
HRESULT Advise([in] IUnknown *pUnkSink, [out] DWORD *pdwCookie)
void CheckError(HRESULT hr)
Definition: shellclasses.h:167
SIfacePtr< IConnectionPoint > _connectionpoint
Definition: webchild.h:127

◆ EventConnection() [2/2]

template<typename T >
EventConnection::EventConnection ( T connectionpoint,
IUnknown sink 
)
inline

Definition at line 102 of file webchild.h.

103 {
104 CheckError(connectionpoint->Advise(sink, &_cookie));
105 _connectionpoint = connectionpoint;
106 }

◆ ~EventConnection()

EventConnection::~EventConnection ( )
inline

Definition at line 120 of file webchild.h.

121 {
124 }
HRESULT Unadvise([in] DWORD dwCookie)

Member Data Documentation

◆ _connectionpoint

SIfacePtr<IConnectionPoint> EventConnection::_connectionpoint
protected

Definition at line 127 of file webchild.h.

Referenced by EventConnection(), and ~EventConnection().

◆ _cookie

DWORD EventConnection::_cookie
protected

Definition at line 128 of file webchild.h.

Referenced by EventConnection(), and ~EventConnection().


The documentation for this struct was generated from the following file: