IUPnPDeviceFinder::FindByType (Compact 7)

3/12/2014

This method performs a synchronous search for devices by device or service type.

Syntax

HRESULT FindByType(
  BSTR bstrTypeURI,
  DWORD dwFlags,
  IUPnPDevices** pDevices
);

Parameters

  • bstrTypeURI
    [in] Specifies the type URI for the device or service type for which to search.
  • dwFlags
    [in] Reserved; set to 0 (zero).

Return Value

  • S_OK
    This method was successful.

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

Remarks

This method does not return until the search is complete. The search may take at least nine seconds, and possibly more. This method must not be called from a thread that processes user interface messages.

Requirements

Header

upnp.h

Library

uuid.lib

See Also

Reference

IUPnPDeviceFinder
IUPnPDeviceFinder::FindByUDN
IUPnPDevices