Share via


IUPnPEventSource::Unadvise (Windows Embedded CE 6.0)

1/6/2010

This method is invoked by the device host to inform the hosted service that it no longer wants to receive events. The device host passes in the same object pointer that it passed in through a call to the IUPnPEventSource::Advise method, thereby causing the hosted service to release the reference.

Syntax

HRESULT Unadvise(
  IUnknown* punkSubscriber
);

Parameters

  • punkSubscriber
    [in] Pointer to the device host's IUnknown interface. This is the same object pointer that was passed in through a call to the IUPnPEventSource::Advise method.

Return Value

If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes that are defined in Winerror.h.

Requirements

Header upnphost.h
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IUPnPEventSource
IUPnPEventSink
IUPnPEventSource::Advise