Is there a list of UPnP Type URN's?

290 Views Asked by At

I am trying to do Create an Forward Port on my Router using the UPnP API's from Windows in c++.

https://learn.microsoft.com/en-us/windows/win32/upnp/synchronous-searching

When trying to find an Device by Type using FindByType(), there is an Parameter that requires the Object Type as an BSTR, in the Microsoft Documentation Example they used:

urn:schemas-upnp-org:device:multidisk-dvd

however they did not left any other hints of how i could find Objects that have a different Object Type (My Router Device in this case).

Is there some kind of List that holds all the possible Object Types, or something else that could help me?

1

There are 1 best solutions below

1
YangXiaoPo-MSFT On

In the following document Discovering Devices,

You can search for devices in three ways: by type, by UDN, and by asynchronous search (which is a search by device type).

C++ UPnP samples that discover and control UPnP devices found on the network.

Well-known devtypes:

upnp:rootdevice All Root Devices
urn:schemas-upnp-org:device:InternetGatewayDevice:1 Internet Gateway Devices
urn:schemas-upnp-org:device:lighting:1 Lighting Devices
urn:schemas-upnp-org:device:reminder:1 Reminder Devices
urn:microsoft-com:device:DimmerDevice:1 UPnP SDK Sample Dimmer Devices