WSDCreateDiscoveryPublisher2 function

Creates an IWSDiscoveryPublisher object that supports signed messages.

Syntax


HRESULT WINAPI WSDCreateDiscoveryPublisher2(
  _In_   IWSDXMLContext *pContext,
  _In_   WSD_CONFIG_PARAM *pConfigParams,
  _In_   DWORD dwConfigParamCount,
  _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.

pConfigParams [in]

An array of WSD_CONFIG_PARAM structures that contain the parameters for creating the object.

dwConfigParamCount [in]

The total number of structures passed in pConfigParams.

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

Function completed successfully.

E_POINTER

ppPublisher is NULL.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

WsdDisco.h (include Wsdapi.h)

Library

Wsdapi.lib

DLL

Wsdapi.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft