IBidiSpl2::SendRecvXMLStream method (bidispl.h)

The SendRecvXMLStream method sends a bidirectional printer communication request and receives the response as IStream objects formatted in accordance with the Bidirectional Communication Schemas.

Syntax

HRESULT SendRecvXMLStream(
  [in]  IStream *pSRequest,
  [out] IStream **ppSResponse
);

Parameters

[in] pSRequest

A pointer to the bidi communication request as a stream that complies with one of the Bidirectional Communication Schemas.

[out] ppSResponse

A pointer to the printer's response as a stream that complies with one of the Bidirectional Communication Schemas.

Return value

The method returns one of the following values.

Return code Description
S_OK The operation was successful.
E_HANDLE The interface handle is invalid.
None of the above The HRESULT contains an error code that corresponds to the last error.

Note that the HRESULT may contain a system error code that is defined in Bidi Error Codes.

Remarks

The character encoding of ppSResponse is UTF-8. The character encoding of pSRequest is either UTF-8 or Unicode with a byte order mark OxFEFF.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Desktop
Header bidispl.h
DLL Bidispl.dll

See also

Bidirectional Communication Interfaces

Bidirectional Communication Schema

IBidiSpl2

Print Spooler Components