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.

IBidiSpl2::IBidiSpl2::SendRecvXMLStream method

The IBidiSpl2::SendRecvXMLStream method sends a bidirectional printer communication request and receives the response as IStream objects formatted in accordance with the Bidi Request and Response Schemas.

Syntax


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

Parameters

pSRequest [in]

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

ppSResponse [out]

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

Return value

The method returns one of the following values.

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

For more information about Component Object Model (COM) error codes, see Error Handling.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Bidispl.h

DLL

Bidispl.dll

See also

IBidiSpl2
Printing and Print Spooler Overview
Printing and Print Spooler Interfaces
Bidi Communications Schema
Bidi Request and Response Schemas

 

 

Community Additions

Show:
© 2014 Microsoft