INotifyConnection2::RegisterNotifySource 方法

更新:2007 年 11 月

安装指定的通知源。

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 方法