SetNotifyInterface

HRESULT CAdviseConnection::SetNotifyInterface(
REFIID riid)

Parameters

riid

Reference to the IID of the desired connection point interface.

Return Code

E_FAIL
Returned if the advise connection is currently active.

S_OK
Method succeeded. No attempt is made to validate the new GUID.

Comments

This method is called to set a new notification interface, which will be used to establish an advise connection on the next call to Advise. If the default constructor is used to create the object, then this method must be called to set the notification interface prior to calling Advise.