IBidiSpl2::SendRecvXMLString method

The SendRecvXMLString method sends a bidirectional printer communication request and receives the response as Unicode strings formatted in accordance with the Bidirectional Communication Schemas.

Syntax

HRESULT SendRecvXMLString(
  BSTR bstrRequest,
  BSTR *pbstrResponse
);

Parameters

bstrRequest

The bidi communication request as a Unicode string that complies with one of the Bidirectional Communication Schemas.

pbstrResponse

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

Return Value

The method returns one of the following values.

Value 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.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Desktop
Header bidispl.h
DLL Bidispl.dll

See Also

Bidirectional Communication Interfaces

IBidiSpl2

Print Spooler Components