# IRsConEvents Struct Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | Connector ([in] RtConnectorEvent eCEvent,[in] IRsConnector *pCon,[in] CONID conId)
HRESULT | Connection ([in] RtConnectionEvent eCNEvent,[in] IRsConnector *pCon,[in] IRsConnector *pRemCon)

## Detailed Description

A node can implement this interface to receive events when a connector is being added to the node or removed from the node or in case when a connection is being created or destroyed. A node can allow or deny actions based on the returned value. The IRsConEvents methods may forbid the registration by an FAILURE error code. The IRsConEvents methods are just informed, the connection is unregistered even FAILURE return values are returned.

## Member Function Documentation

HRESULT IRsConEvents::Connector | ( | [in] RtConnectorEvent | eCEvent,
|  | [in] IRsConnector * | pCon,
|  | [in] CONID | conId |
| ) |  |  |

Connector callback is called when a connector is being added or removed from node

Parameters:

  | eCEvent | [in] .
  | pCon | [in] .
  | conId | [in] .

HRESULT IRsConEvents::Connection | ( | [in] RtConnectionEvent | eCNEvent,
|  | [in] IRsConnector * | pCon,
|  | [in] IRsConnector * | pRemCon |
| ) |  |  |

Connection callback is called when connection between to attributes is being created or destroyed

Parameters:

  | eCNEvent | [in] .
  | pCon | [in] .
  | pRemCon | [in] .