IUPnPEventSource::Advise method (upnphost.h)

The Advise method is invoked by the device host to begin receiving events from the hosted service. The device host passes a pointer to its IUnknown interface. The hosted service must query this IUnknown interface for the IUPnPEventSink interface the service must use to send event notifications.

Syntax

HRESULT Advise(
  [in] IUPnPEventSink *pesSubscriber
);

Parameters

[in] pesSubscriber

Pointer to the device host's IUPnPEventSink interface.

Return value

When implementing this method, return S_OK if the method succeeds. Otherwise, return one of the COM error codes defined in WinError.h.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header upnphost.h
DLL Upnphost.dll

See also

IUPnPEventSource

IUPnPEventSource::Unadvise