IUPnPDeviceFinderCallback::DeviceRemoved method (upnp.h)

The DeviceRemoved method is invoked by the UPnP framework to notify the application that a device has been removed from the network.

Syntax

HRESULT DeviceRemoved(
  [in] LONG lFindData,
  [in] BSTR bstrUDN
);

Parameters

[in] lFindData

Specifies the search for which the UPnP framework is returning results. The value of lFindData is the value returned to the caller by IUPnPDeviceFinder::CreateAsyncFind.

[in] bstrUDN

Specifies the UDN of the device that was removed from the network.

Return value

The application should return S_OK.

Remarks

The UPnP framework might return two or more callbacks for the same device. An application can ignore subsequent device-removal callbacks.

Requirements

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

See also

IUPnPDeviceFinder

IUPnPDeviceFinder::CreateAsyncFind

IUPnPDeviceFinderCallback