Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
35
SHEET
34
3.19. BiSetInkStatusBackFunction
[Function]
Registers a callback function output when calling for ink status notification.
[Format]
int BiSetInkStatusBackFunction( int nHandle,
int (CALLBACK EXPORT *pStatusCB)(DWORD dwStatus)) ;
[Argument]
int nHandle
Specifies the handle value for the printer whose status is being acquired. The return value of BiOpenMonPrinter() is specified
in the handle value.
int (CALLBACK EXPORT *pStatusCB)(DWORD dwStatus)
Sets the address of the callback function.
[Return Value]
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_PARAM Parameter error
[Explanation]
If BiSetInkStatusBackFunction() is called, first, the ink status at that point is set in dwStatus and the callback function is
called. After that, each time the printer’s status undergoes a change, the new status is set in dwStatus and the callback function
is called. To cancel the automatic status notification, BiCancelInkStatusBack() is executed.
For the value set in the callback function argument dwStatus, see the table in
5.15, BiGetInkStatus
.
[Supported Printer]
TM-J8000, TM-J2000/2100, TM-J7000/7100