Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
60
SHEET
59
3.41.BiSCNSetReadBackWnd
[Function]
This function executes image scanning with the BiSCNReadImage function and registers the memory address for the
handle of the button where button click events are sent when sending notification of the scanning results as well the memory
addresses for setting each type of information.
[Format]
int BiSCNSetReadBackWnd( int nHandle, long hWnd, LPDWORD pBuffSize,
LPBYTE pBuff, LPBYTE pImageXsize,
LPBYTE pStatus, LPBYTE pDetail)
[Argument]
int nHandle
Specifies the handle value of the printer executing the function. The return value in BiOpenMonPrinter() is specified.
Long hWnd
The button handle. Click events are sent to this button.
LPDWORD pBuffSize
Specifies the size of memory where image data are sent. The actual scanning data size is set after this function is
executed.
LPBYTE pBuff
Specifies the memory address where image data are set.
LPBYTE pImageXsize
Specifies the memory address where the number of data (bytes) in the X direction of the image data is set.
LPBYTE pStatus
Specifies the memory address where the scanning status is stored. See the BiSCNSetReadBackFunction image scanning
status concerning the returned status.
LPBYTE pDetail
Specifies the memory address where the detailed information is set when scanning ends with an error. See the
BiSCNSetReadBackFunction image detailed information concerning the returned status.
[Return Values]
If execution is successful, 0 is returned. If an error occurs, the following error codes (negative values) are returned.
ERR_HANDLE The handle value specified for the printer is incorrect.
ERR_NO_MEMORY Memory is insufficient.
ERR_PARAM
Parameter error
ERR_NOT_SUPPORT Not supported
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state is recovered.
[Caution]
This function should always be called before the BiSCNReadImage function is called. If the BiSCNReadImage function
is called before this function, it will result in an error.
If the scanning data overflow, the 6
th
bit of the read status goes ON (read data overflow). In that case, the “required
number of bytes” is set in pBuffSize.
Sufficient buffer capacity should be specified in pBuffSize and pBuff. The maximum image data size is 4 megabytes.
[Supported Printers]
TM-H6000II with scanner