WSDCreateDiscoveryPublisher function

Creates an IWSDiscoveryPublisher object.

Syntax


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

Parameters

pContext [in]

An IWSDXMLContext interface 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

Possible return values include, but are not limited to, the following:

Return codeDescription
S_OK

Method completed successfully.

E_POINTER

ppPublisher is NULL.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WsdDisco.h (include Wsdapi.h)

Library

Wsdapi.lib

DLL

Wsdapi.dll

 

 

Community Additions

ADD
Show: