Share via


IWSDiscoveryPublisher::RegisterNotificationSink (Compact 2013)

3/26/2014

This method attaches a callback notification sink to the discovery publisher.

Syntax

HRESULT RegisterNotificationSink(
  IWSDiscoveryPublisherNotify* pSink
);

Parameters

  • pSink
    [in] Initialized interface to receive callback notifications. Cannot return NULL.

Return Value

The following table shows the possible error code return values.

Error code

Description

S_OK

This 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

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

IWSDiscoveryPublisher
Web Services on Devices Interfaces