IUPnPDescriptionDocument::DeviceByUDN (Compact 7)

3/12/2014

This method returns the device with the specified UDN contained within the loaded description document.

Syntax

HRESULT DeviceByUDN(
  BSTR bstrUDN,
  IUPnPDevice** ppudDevice
);

Parameters

  • bstrUDN
    [in] Specifies the UDN of the device.
  • ppudDevice
    [out] Receives a reference to an IUPnPDevice:IDispatch object that describes the device. This reference must be released when it is no longer needed.

Return Value

  • S_OK
    This method was successful.

Otherwise, this method returns one of the COM error codes defined in WinError.h.

Remarks

Use DeviceByUDN only after a device description is loaded using either IUPnPDescriptionDocument::Load or IUPnPDescriptionDocument::LoadAsync. The search operation searches only in the currently loaded device description.

Requirements

Header

upnp.h

Library

uuid.lib

See Also

Reference

IUPnPDescriptionDocument
IUPnPDevice