Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsSetInputToBuffer function

Sets Reader input to a specified XML buffer. Reader properties specified to WsSetInputToBuffer override properties set by WsCreateReader.

The reader does not modify WS_XML_BUFFER input data.

Note   It is permissible for more than one reader to read from the same WS_XML_BUFFER.
 

Syntax


HRESULT WINAPI WsSetInputToBuffer(
  _In_     WS_XML_READER                *reader,
  _In_     WS_XML_BUFFER                *buffer,
           const WS_XML_READER_PROPERTY *properties,
  _In_     ULONG                        propertyCount,
  _In_opt_ WS_ERROR                     *error
);

Parameters

reader [in]

A pointer to the WS_XML_READER object for which the input will be set.

buffer [in]

A pointer to the XML buffer to read.

properties

A pointer that references an array of optional Reader properties.

Note  For more information see WS_XML_READER_PROPERTY.
 
.
propertyCount [in]

The number of properties.

error [in, optional]

A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

When an XML Reader has an XML Buffer as an input source, the Reader can be used in a random access fashion, and the functions WsGetReaderPosition, WsSetReaderPosition, and WsMoveReader are available for use.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2016 Microsoft