INotifyConnection2::RegisterNotifySource 方法

安装指定的通知源。

HRESULT RegisterNotifySource
(
    [in]  INotifySource2*  in_pNotifySource,
    [out] INotifySink2**   out_ppNotifySink
);

参数

  • in_pNotifySource
    [in] 指定要用作通知源的对象。

  • out_ppNotifySink
    [out] 接收要用作通知接收器的对象。

返回值

如果此方法成功,则返回 S_OK。

要求

**头文件:**ProtocolNotify2.idl

请参见

参考

INotifyConnection2 接口

INotifySource2 接口

INotifySink2 接口

INotifyConnection2::UnregisterNotifySource 方法