IWSDiscoveryProvider::Detach (Windows Embedded CE 6.0)

1/6/2010

This method detaches a callback interface from the discovery provider.

Syntax

HRESULT Detach();

Parameters

This method has no parameters.

Return Value

The following table shows the possible error code return values.

Error code Description

S_OK

This method completed successfully.

E_ABORT

A callback interface has not been attached. You must call IWSDiscoveryProvider::Attach before calling this method.

Remarks

If a callback interface has been attached to a discovery provider via the Attach method, then Detach must be called before releasing the reference to the provider interface object.

Requirements

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

See Also

Reference

IWSDiscoveryProvider
Web Services on Devices Interfaces