WS_DYNAMIC_STRING_CALLBACK callback function (webservices.h)

Determines whether the specified string can be written in optimized form. This callback is used in WS_XML_WRITER_BINARY_ENCODING

Syntax

WS_DYNAMIC_STRING_CALLBACK WsDynamicStringCallback;

HRESULT WsDynamicStringCallback(
  [in]           void *callbackState,
  [in]           const WS_XML_STRING *string,
  [out]          BOOL *found,
  [out]          ULONG *id,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] callbackState

User-defined state that was passed to the function that accepted the WS_DYNAMIC_STRING_CALLBACK.

[in] string

The string to look up in the dynamic dictionary.

[out] found

Whether or not the string was found in the dynamic dictionary is returned here.

[out] id

The id of the string is returned here.

[in, optional] error

Specifies where additional error information should be stored if the function fails.

Return value

This callback function does not return a value.

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 webservices.h