Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
38
SHEET
37
3.22.
BiMICRSetReadBackFunction
[Function]
Executes reading of checks by BiMICRReadCheck and registers the address of the callback function when the results are
notified as well as the memory addresses where each type of information read from the check is set.
[Format]
int BiMICRSetReadBackFunction( int nHandle,
int (CALLBACK EXPORT *pMicrCB)(void),LPBYTE pReadBuffSize,
LPBYTE readCharBuff, LPBYTE pStatus, LPBYTE pDetail)
[Argument]
int nHandle
Specifies the handle value of the executing printer. The return value specified in BiOPENMonPRinter() is specified as the
handle value.
int (CALLBACK EXPORT * pMicrCB)( void )
Specifies the address of the callback function for notifying the results from reading of a check.
LPBYTE pReadBuffSize
Specifies the size of the memory where the reading data are set. After execution of this function, the size of the data which
were actually read is set.
LPBYTE readCharBuff
Specifies the memory address where the check reading data are set.
LPBYTE pStatus
Specifies a 1-byte memory address where the reading status is stored. See MICR reading status below concerning the status
that is returned.
LPBYTE pDetail
Specifies a 1-byte memory address in which reading of a check ends in an error, which is returned in cases where detailed
information is added in accordance with the BiMICRSelectDataHandlingfunction. See the following detailed MICR
information concerning the detailed information that is returned.
[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 that specifies the printer is incorrect.
ERR_NOT_SUPPORT Not supported by this printer.
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state is recovered.
ERR_NOT_EPSON The printer is not an EPSON printer, so it cannot be used.
ERR_PARAM Parameter error
[Explanation]
The following MICR reading states can be acquired.