IWSDiscoveryPublisher::RegisterNotificationSink method (wsddisco.h)

Attaches a callback notification sink to the discovery publisher.

Syntax

HRESULT RegisterNotificationSink(
  [in] IWSDiscoveryPublisherNotify *pSink
);

Parameters

[in] pSink

Pointer to an IWSDiscoveryPublisherNotify object that represents the initialized interface to receive callback notifications. This parameter cannot be NULL.

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_OUTOFMEMORY
Insufficient memory to complete the operation.

Remarks

The notification sink receives a callback whenever an inbound query is received. It is possible to register multiple notification sinks with a single publisher.

Note  RegisterNotificationSink must be called at least once before any other IWSDiscoveryPublisher method is used.
 

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

IWSDiscoveryPublisher