WsReadCharsUtf8 function (webservices.h)
Reads a specified number of text characters from the reader and returns them encoded in UTF-8.
HRESULT WsReadCharsUtf8( WS_XML_READER *reader, BYTE *bytes, ULONG maxByteCount, ULONG *actualByteCount, WS_ERROR *error );
A pointer to the XML Reader from which the character data should be read. The pointer must reference a valid WS_XML_READER object.
A pointer to the buffer to place the encoded bytes that have been read.
The maximum number of bytes that should be read.
A pointer to a ULONG value of the actual number of bytes that were read. This may be less than maxByteCount even when there are more bytes remaining. There are no more bytes when this returns zero.
A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.
This function can return one of these values.
||The input data was not in the expected format or did not have the expected value.|
||A quota was exceeded.|
XML text is read up to either a start element or end element. Comments are skipped, and CDATA content is treated identically to element content. Character entities are converted to their unescaped form.
This function can fail for any of the reasons listed in WsReadNode.
|Minimum supported client||Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps | UWP apps]|