WSDXMLGetValueFromAny function (wsdutil.h)

Retrieves a text value from a specified child element of an XML any element.

Syntax

HRESULT WSDXMLGetValueFromAny(
  [in]  LPCWSTR        pszNamespace,
  [in]  LPCWSTR        pszName,
  [in]  WSDXML_ELEMENT *pAny,
  [out] LPCWSTR        *ppszValue
);

Parameters

[in] pszNamespace

The namespace of the element to retrieve.

[in] pszName

The name of the element to retrieve.

[in] pAny

Reference to a WSDXML_ELEMENT structure that contains the any element that is the parent of the element to retrieve.

[out] ppszValue

The text value of the element specified by pszNamespace and pszName. The memory usage of ppszValue is managed elsewhere. Consequently, the calling application should not attempt to deallocate ppszValue.

Return value

This function can return one of these values.

Return code Description
S_OK
Method completed successfully.
E_INVALIDARG
The length in characters of pszNamespace or pszName exceeds WSD_MAX_TEXT_LENGTH (8192), or pAny is NULL.
E_POINTER
ppszValue is NULL.
E_FAIL
The method failed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdutil.h (include Wsdapi.h)
Library Wsdapi.lib
DLL Wsdapi.dll