The SendRecvXMLString method sends a bidirectional printer communication request and receives the response as Unicode strings formatted in accordance with the Bidirectional Communication Schemas.
HRESULT SendRecvXMLString( BSTR bstrRequest, BSTR *pbstrResponse );
The bidi communication request as a Unicode string that complies with one of the Bidirectional Communication Schemas.
A pointer to the printer's response as a Unicode string that complies with one of the Bidirectional Communication Schemas.
The method returns one of the following values.
||The operation was successful.|
||The interface handle is invalid.|
||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.
|Windows version||Windows Vista Windows Server 2008|