IWSDiscoveryPublisher::RegisterNotificationSink (Windows Embedded CE 6.0)
1/6/2010
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 |
Windows Embedded CE | Windows Embedded CE 6.0 R2 |