IUPnPRegistrar::UnregisterDeviceProvider method (upnphost.h)

The UnregisterDeviceProvider method permanently unregisters and unloads the device provider from the device host. The IUPnPDeviceProvider::Stop method is invoked.


HRESULT UnregisterDeviceProvider(
  [in] BSTR bstrProviderName


[in] bstrProviderName

Specifies the provider name. Use the same name that was used in the call to RegisterDeviceProvider.

Return value

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


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

See also