IBidiRequest::SetInputData method

The SetInputData method sets the data to send to the printer.

Syntax

HRESULT SetInputData(
  const DWORD dwType,
  const BYTE  *pData,
  const UINT  uSize
);

Parameters

dwType

The type of data to be sent. This parameter can be one of the following values.

Value Meaning
BIDI_NULL
No data.
BIDI_INT
Integer data.
BIDI_FLOAT
Floating-point number.
BIDI_BOOL
TRUE or FALSE.
BIDI_STRING
Unicode character string.
BIDI_TEXT
Non-localizable Unicode string.
BIDI_ENUM
Enumeration data in the form of a Unicode string.
BIDI_BLOB
Binary data.

pData

A pointer to the byte array that contains the data. For example, if dwType is BIDI_BOOL, pData points to a buffer that contains a Boolean value and if dwType is BIDI_BLOB, pData points to a buffer that contains the binary data.

uSize

Size, in bytes, of the byte array specified by pData.

Return Value

The method returns one of the following values. For more information about COM error codes, see Error Handling.

Value Description
S_OK
The operation was successfully carried out.
E_HANDLE
The interface handle was invalid.
E_INVALIDARG
The type of the data was not consistent with its size.
E_OUTOFMEMORY
Memory allocation failed.
None of the above
The HRESULT contains an error code corresponding to the last error.

Remarks

If an application calls SetInputData more than once, only the value of the last call will be set.

Requirements

   
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Target Platform Desktop
Header bidispl.h
DLL Bidispl.dll

See Also

Bidirectional Communication Interfaces

Bidirectional Communication Schema

IBidiRequest