Share via


IWSDiscoveryProvider::Attach

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method attaches a callback interface to the discovery provider.

Syntax

HRESULT Attach(
    IWSDiscoveryProviderNotify* pSink
);

Parameters

  • pSink
    [in] Interface to receive callback notifications. Search results as well as the Hello and Bye messages are communicated to this interface via the callbacks.

Return Value

The following table shows the possible error code return values.

Error code Description

S_OK

This method completed successfully.

E_POINTER

pSink is NULL.

E_ABORT

A callback interface has already been attached to the provider.

Remarks

Attach must be called before any other IWSDiscoveryProvider method is used, except for IWSDiscoveryProvider::SetAddressFamily.

Requirements

Header wsdapi.h
Library wsdapi.lib
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

Web Services on Devices Interfaces
IWSDiscoveryProvider