IUPnPEventSource::Unadvise method (upnphost.h)
The Unadvise method is invoked by the device host to stop receiving events. The device host passes in the same pointer that it did when it invoked the IUPnPEventSource::Advise method.
After this method is invoked, the hosted service releases the reference to the event sink that it held.
Syntax
HRESULT Unadvise(
[in] IUPnPEventSink *pesSubscriber
);
Parameters
[in] pesSubscriber
Pointer to the device host's IUPnPEventSink interface. This must be the same pointer that was passed when IUPnPEventSource::Advise was invoked.
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 |