Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CONNECTDATA structure

Describes a connection that exists to a given connection point.

Syntax


typedef struct tagCONNECTDATA {
  IUnknown *pUnk;
  DWORD    dwCookie;
} CONNECTDATA, *PCONNECTDATA, *LPCONNECTDATA;

Members

pUnk

A pointer to the IUnknown interface on a connected advisory sink. The caller must call Release using this pointer when the CONNECTDATA structure is no longer needed. The caller is responsible for calling Release for each CONNECTDATA structure enumerated through IEnumConnections::Next.

dwCookie

Connection where this value is the same token that is returned originally from calls to IConnectionPoint::Advise. This token can be used to disconnect the sink pointed to by a pUnk by passing dwCookie to IConnectionPoint::Unadvise.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Ocidl.h

See also

IConnectionPoint
IEnumConnections

 

 

Show:
© 2017 Microsoft