다음을 통해 공유


IDeviceController::AddDevice method (windows.media.streaming.h)

Adds a DLNA DMR or DMS Device, identified by its UPnP Unique Device Name (UDN), to the list of devices that is returned by the CachedDevices method.

Syntax

HRESULT AddDevice(
  [in] HSTRING uniqueDeviceName
);

Parameters

[in] uniqueDeviceName

A string representing the device’s UDN.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Target Platform Windows
Header windows.media.streaming.h

See also

IDeviceController