IWSDiscoveryPublisher::UnRegisterNotificationSink method (wsddisco.h)

Detaches a callback notification sink from the discovery publisher.

Syntax

HRESULT UnRegisterNotificationSink(
  [in] IWSDiscoveryPublisherNotify *pSink
);

Parameters

[in] pSink

Pointer to the IWSDiscoveryPublisherNotify interface that will stop receiving callback notifications.

Return value

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

Return code Description
S_OK
The method completed successfully.
E_INVALIDARG
pSink is NULL.
E_FAIL
The method failed.

Remarks

Note  UnRegisterNotificationSink must be called at least once for each notification sink previously attached to the discovery publisher.
 

Requirements

   
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

IWSDiscoveryPublisher