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.

Syntax

HRESULT UnregisterDeviceProvider(
  [in] BSTR bstrProviderName
);

Parameters

[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.

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

IUPnPRegistrar