Share via


WSDCreateDiscoveryPublisher (Compact 2013)

3/26/2014

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

See Also

Reference

Web Services on Devices Functions
Web Services on Devices Reference