IWSDiscoveryProvider::Detach method (wsddisco.h)

Detaches a callback interface from the discovery provider.

Syntax

HRESULT Detach();

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
E_ABORT
A callback interface has not been attached. You must call 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.

The Detach operation blocks until all callbacks into the associated IWSDiscoveryProviderNotify object have completed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsddisco.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDiscoveryProvider