Share via


IXFeed::GetWatcher Method

Returns the appropriate interface for events.

Syntax

HRESULT GetWatcher(
    FEEDS_EVENTS_SCOPE scope,
    FEEDS_EVENTS_MASK mask,
    REFIID riid,
    void **ppv
);

Parameters

  • scope
    [in] A FEEDS_EVENTS_SCOPE value that limits the extent of events notifications to be received.
  • mask
    [in] A combination of FEEDS_EVENTS_MASK values that specify the source of events.
  • riid
    [in] IID of the requested interface.
  • ppv
    [out] Address of an interface pointer that receives the event callback.

Return Value

Returns S_OK if successful, or E_NOINTERFACE if the interface is not supported.

Remarks

Although the signatures for IXFeed::GetWatcher and IXFeedFolder::GetWatcher are the same, requesting a folder watcher from a feed object returns E_INVALIDARG.

See Also

IXFeedFolder::GetWatcher