WSDXMLGetValueFromAny function

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

Syntax


 HRESULT STDAPI WSDXMLGetValueFromAny(
  _In_   const WCHAR *pszNamespace,
  _In_   const WCHAR *pszName,
  _In_   WSDXML_ELEMENT *pAny,
  _Out_  const LPCWSTR *ppszValue
);

Parameters

pszNamespace [in]

The namespace of the element to retrieve.

pszName [in]

The name of the element to retrieve.

pAny [in]

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

ppszValue [out]

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 codeDescription
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WsdUtil.h (include Wsdapi.h)

Library

Wsdapi.lib

DLL

Wsdapi.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft