WSDCreateDiscoveryPublisher2 function (wsddisco.h)
Creates an IWSDiscoveryPublisher object that supports signed messages.
Syntax
HRESULT WSDCreateDiscoveryPublisher2(
[in] IWSDXMLContext *pContext,
[in] WSD_CONFIG_PARAM *pConfigParams,
[in] DWORD dwConfigParamCount,
[out] IWSDiscoveryPublisher **ppPublisher
);
Parameters
[in] pContext
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.
[in] pConfigParams
An array of WSD_CONFIG_PARAM structures that contain the parameters for creating the object.
[in] dwConfigParamCount
The total number of structures passed in pConfigParams.
[out] ppPublisher
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 code | Description |
---|---|
|
Function completed successfully. |
|
ppPublisher is NULL. |
|
Insufficient memory to complete the operation. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | wsddisco.h (include Wsdapi.h) |
Library | Wsdapi.lib |
DLL | Wsdapi.dll |