Partager via


IUPnPDeviceFinder::FindByUDN

This method searches for a device by its UDN.

HRESULT FindByUDN(
  BSTR bstrUDN,
  IUPnPDevice** pDevice
);

Parameters

  • bstrUDN
    [in] Specifies the UDN for which to search.
  • pDevice
    [out] Receives a reference to an IUPnPDevice:IDispatch object that contains the requested device. Receives NULL if the specified device is not found.

Return Values

  • S_OK
    This method was successful.

Remarks

This method returns as soon as a device that matches the specified UDN is found. If no device is found, the method takes at least nine seconds to return, and possibly longer.

This method can take up to 20 seconds to return.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Upnp.h.
Link Library: Uuid.lib.

See Also

IUPnPDeviceFinder:IDispatch | IUPnPDeviceFinder::FindByType | IUPnPDevice:IDispatch

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.