次の方法で共有


IWSDiscoveryProviderNotify::SearchFailed (Compact 2013)

3/26/2014

This method is called to indicate a user initiated search has failed.

Syntax

HRESULT SearchFailed(
  HRESULT hr,
  LPCWSTR pszTag
);

Parameters

  • hr
    [in] Cause of the search failure which initiated this callback.
  • pszTag
    [in, optional] Optional identifier tag for this search. May be NULL.

Return Value

The following table shows the possible error code return values.

Error code

Description

S_OK

The return value for this method is not meaningful. An implementer should return S_OK.

Remarks

SearchFailed is typically called if a user initiated query does not result in a response. It can optionally be called if errors occur in the attempted transmission of the query, since query transmission is not necessarily synchronous. pszTag will match the user supplied tag from the query, and should be used to identify which query failed.

Note

Multiple simultaneous calls may be made to SearchFailed by the provider, so it is essential that shared data be synchronized in this callback.

Requirements

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

IWSDiscoveryProviderNotify
Web Services on Devices Interfaces