WSDCreateDiscoveryPublisher (Windows Embedded CE 6.0)

1/6/2010

This function creates an IWSDiscoveryPublisher object by calling the COM CoCreateInstance function.

Syntax

HRESULT WSDCreateDiscoveryPublisher(
  IWSDXMLContext* pContext,
  IWSDiscoveryPublisher** ppPublisher
);

Parameters

  • pContext
    [in] An IWSDXMLContext object that defines custom message types or namespaces.

    If NULL, a default context representing the built-in message types and namespaces is used.

  • ppPublisher
    [out] Returns a reference to the initialized IWSDiscoveryPublisher object. Cannot be NULL.

Return Value

The following table shows the possible error code return values.

Error Code Description

S_OK

The function succeeded.

E_POINTER

ppPublisher is NULL.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

Requirements

Header wsdapi.h
Library wsdapi.lib
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

Web Services on Devices Functions
Web Services on Devices Reference