IUPnPDevice::get_RootDevice method (upnp.h)

The RootDevice property specifies the topmost device in the device tree. The root device represents a physical object.

Syntax

HRESULT get_RootDevice(
  [out] IUPnPDevice **ppudRootDevice
);

Parameters

[out] ppudRootDevice

Receives a reference to an IUPnPDevice object that describes the root device. This reference must be released when it is no longer required.

Return value

For C++: If this property's "get" 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 upnp.h
DLL Upnp.dll

See also

IUPnPDevice

IUPnPDevice::IsRootDevice