Implementing a Device Provider

To implement a device provider, create an object that exposes the IUPnPDeviceProvider interface. This object must be registered with the device host using the IUPnPRegistrar::RegisterDeviceProvider method. This method takes the following parameters:

  • The name of the provider, which must be unique on the computer.
  • The ProgID of the class that implements the device provider.
  • An initialization string that is passed to the device provider when it is started.
  • A container ID. A container ID is a string that identifies the group to which the device belongs. All devices with the same container identifier are hosted in the same process.