IUPnPRegistrar interface (upnphost.h)

The IUPnPRegistrar interface registers the devices that run in the context of the device host.


The IUPnPRegistrar interface inherits from the IUnknown interface. IUPnPRegistrar also has these types of members:


The IUPnPRegistrar interface has these methods.


The GetUniqueDeviceName method retrieves the UDN for the specified device.

The RegisterDevice method registers a device with the device host. The device information is stored by the device host. Then, the device host returns a device identifier and publishes and announces the device on the network.

The RegisterDeviceProvider method registers a device provider with the device host. The device provider is not published on the network. Instead, it creates devices dynamically and registers them using RegisterRunningDevice.

The RegisterRunningDevice method registers a running device with the device host.

The UnregisterDevice method unregisters the device from the device host. A device is either temporarily or permanently unregistered.

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


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