IBidiSpl2::SendRecvXMLString method (bidispl.h)

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(
  [in]  BSTR bstrRequest,
  [out] BSTR *pbstrResponse
);

Parameters

[in] bstrRequest

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

[out] 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.

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

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

IBidiSpl2

Print Spooler Components